[FFmpeg-devel] [PATCH] ffplay multi-channel fix

Justin Ruggles justinruggles
Sun Jan 6 03:44:32 CET 2008

Michael Niedermayer wrote:
> Hi
> On Sat, Jan 05, 2008 at 04:39:04PM -0500, Justin Ruggles wrote:
>> Hi,
>> Here is a patch to fix ffplay for decoders which support multi-channel,
>> but do not support downmixing.  Basically it moves the SDL audio init to
>> after decoder init, which allows for AVCodecContext.channels to be
>> changed based on AFCodecContext.request_channels.  If the requested
>> channels are not granted, then SDL needs to be init'ed with the full
>> number of coded channels.  The result is that multi-channel wav, vorbis,
>> flac, etc... will play, but the first 2 channels are treated as
>> left/right.  All channels are displayed in the oscilloscope.
> ok


More information about the ffmpeg-devel mailing list