[FFmpeg-devel] [PATCH] set AVContext correctly in mpc[78].c init, even on second call

Kostya kostya.shishkov
Sun Nov 29 13:29:12 CET 2009

On Sat, Nov 28, 2009 at 07:27:11PM +0100, Attila Kinali wrote:
> Moin,
> Commit 20623 uncovered a bug in the init functions of mpc7 and mpc8.
> If ->init() is called a second time in these codecs avctx.sample_fmt
> and .channel_layout will not be set correctly.
> This is because both init functions check whether the vlc is already
> initialized, and if yes return. But sample_fmt and channel_layout are
> set after the initialization of the vlc (although they do not depend on it).
> The attached patch fixes it.
> 					Attila Kinali

Looks ok.

More information about the ffmpeg-devel mailing list