[FFmpeg-devel] Make ffmpeg.c and ffplay.c use avctx->request_channels

Andreas Öman andreas
Wed Dec 12 18:22:04 CET 2007

Michael Niedermayer wrote:
> On Wed, Dec 12, 2007 at 02:32:57PM +0100, Andreas ?man wrote:
>> Hi,
>> Michael Niedermayer wrote:
>>> you assume that every codec with >2 chans can downmix this is likely not the
>>> case
>>> a CODEC_CAP_DOWNMIX could be added or just check the channels number after
>>> avcodec_open()
>> Hm, yes, this is not so good.
>> Another option is to make request_channels 'advisory' only.
> it is just advisory (=many codecs ignore it currently)
> codecs which fail hard due to request_chan could be changed ...

Yeah, currently it's only one; 'dca' :) So it isn't exactly
hard to change that.

More information about the ffmpeg-devel mailing list