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

Attila Kinali attila
Sat Nov 28 19:27:11 CET 2009


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

Das Internet ist nichts f?r gute, sozial integrierte Menschen
			-- Lukas Beeler
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lavc-mpc.diff
Type: text/x-diff
Size: 1505 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091128/d9e88ed2/attachment.diff>

More information about the ffmpeg-devel mailing list