SDAVAssetExportSession icon indicating copy to clipboard operation
SDAVAssetExportSession copied to clipboard

Crash when set audioSettings to nil

Open chiahsien opened this issue 7 years ago • 1 comments

From SDAVAssetExportSession.h,

/**
 * The settings used for encoding the audio track.
 *
 * A value of nil specifies that appended output should not be re-encoded.
 * The dictionary’s keys are from <CoreVideo/CVPixelBuffer.h>.
 */
@property (nonatomic, copy) NSDictionary *audioSettings;

So I guess it means that if audioSettings is set to nil, original audio settings from asset will be used, right? But the result is that, if audioSettings is set to nil, it crashes. Did I misunderstand the behavior?

chiahsien avatar Mar 06 '18 05:03 chiahsien

Yes, +1

giuseppenovielli avatar May 26 '23 07:05 giuseppenovielli