Lines 44-50
constexpr auto kFrameSize = 4096;
Link Here
|
44 |
return {}; |
44 |
return {}; |
45 |
} |
45 |
} |
46 |
|
46 |
|
|
|
47 |
|
48 |
#if DA_FFMPEG_NEW_CHANNEL_LAYOUT |
47 |
auto inCodec = (const AVCodec*)nullptr; |
49 |
auto inCodec = (const AVCodec*)nullptr; |
|
|
50 |
#else |
51 |
auto inCodec = (AVCodec*)nullptr; |
52 |
#endif |
53 |
|
48 |
const auto streamId = av_find_best_stream( |
54 |
const auto streamId = av_find_best_stream( |
49 |
input.get(), |
55 |
input.get(), |
50 |
AVMEDIA_TYPE_AUDIO, |
56 |
AVMEDIA_TYPE_AUDIO, |
Lines 152-161
constexpr auto kFrameSize = 4096;
Link Here
|
152 |
inCodecContext->sample_rate, |
158 |
inCodecContext->sample_rate, |
153 |
&outCodecContext->ch_layout, |
159 |
&outCodecContext->ch_layout, |
154 |
#else // DA_FFMPEG_NEW_CHANNEL_LAYOUT |
160 |
#else // DA_FFMPEG_NEW_CHANNEL_LAYOUT |
155 |
&inCodecContext->channel_layout, |
161 |
inCodecContext->channel_layout, |
156 |
inCodecContext->sample_fmt, |
162 |
inCodecContext->sample_fmt, |
157 |
inCodecContext->sample_rate, |
163 |
inCodecContext->sample_rate, |
158 |
&outCodecContext->channel_layout, |
164 |
outCodecContext->channel_layout, |
159 |
#endif // DA_FFMPEG_NEW_CHANNEL_LAYOUT |
165 |
#endif // DA_FFMPEG_NEW_CHANNEL_LAYOUT |
160 |
outCodecContext->sample_fmt, |
166 |
outCodecContext->sample_fmt, |
161 |
outCodecContext->sample_rate); |
167 |
outCodecContext->sample_rate); |