[FFmpeg-devel] [PATCH 1/2] lavc: do not init frame with guessed layout.
nicolas.george at normalesup.org
Mon Apr 1 20:39:16 CEST 2013
Le duodi 12 germinal, an CCXXI, Michael Niedermayer a écrit :
> some or maybe most user applications will need code to support some
> stereo and mono files then
> if(channel_count == 1 && channel_layout==unknown)
> channel_layout = mono
> if(channel_count == 2 && channel_layout==unknown)
> channel_layout = stereo
That is true, but that is completely unrelated to this patch. What you are
referring to happens before the codec init, for the value in AVCodecContext,
while this patch address the problem of an AVFrame created with a
channel_layout different from the one in the corresponding AVCodecContext.
We can consider adding some feature to make the application programmer's
life simpler (but not based on av_get_default_channel_layout()! based on
AVCodec.channel_layouts), but this patch would still be needed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: Digital signature
More information about the ffmpeg-devel