File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -238,8 +238,7 @@ SwrContext* createSwrContext(
238
238
" Couldn't create SwrContext: " ,
239
239
getFFMPEGErrorStringFromErrorCode (status));
240
240
#else
241
- int64_t outLayout =
242
- getOutputChannelLayout (outNumChannels, srcAVFrame);
241
+ int64_t outLayout = getOutputChannelLayout (outNumChannels, srcAVFrame);
243
242
swrContext = swr_alloc_set_opts (
244
243
nullptr ,
245
244
outLayout,
Original file line number Diff line number Diff line change @@ -1207,8 +1207,7 @@ void SingleStreamDecoder::convertAudioAVFrameToFrameOutputOnCPU(
1207
1207
streamInfo.audioStreamOptions .numChannels .value_or (srcNumChannels);
1208
1208
1209
1209
bool mustConvert =
1210
- (srcSampleFormat != outSampleFormat ||
1211
- srcSampleRate != outSampleRate ||
1210
+ (srcSampleFormat != outSampleFormat || srcSampleRate != outSampleRate ||
1212
1211
srcNumChannels != outNumChannels);
1213
1212
1214
1213
UniqueAVFrame convertedAVFrame;
You can’t perform that action at this time.
0 commit comments