[FFmpeg-devel] [PATCH] set AVContext correctly in mpc.c init, even on second call
Sun Nov 29 13:29:12 CET 2009
On Sat, Nov 28, 2009 at 07:27:11PM +0100, Attila Kinali wrote:
> 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
More information about the ffmpeg-devel