[FFmpeg-devel] [PATCH] proper avcodec_get_context_defaults2

Michael Niedermayer michaelni
Fri Jul 13 14:20:54 CEST 2007

On Fri, Jul 13, 2007 at 01:53:01PM +0200, Alex Beregszaszi wrote:
> Hi,
> avcodec_get_context_defaults2 forgots to set codec_type and leaves it
> set to zero (=CODEC_TYPE_VIDEO), while CODEC_TYPE_UNKNOWN is set to -1
> in the enumeration.
> Without this I experienced breakage on some Ogg files (Annodex), which
> have unhandled data streams before the video, thus these are selected.
> This might be a problem for other demuxers aswell.
> This patch fixes this issue.

patch ok if regression tests pass

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

it is not once nor twice but times without number that the same ideas make
their appearance in the world. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070713/7fcd66ab/attachment.pgp>

More information about the ffmpeg-devel mailing list