[FFmpeg-devel] [PATCH] proper avcodec_get_context_defaults2

Alex Beregszaszi alex
Fri Jul 13 13:53:01 CEST 2007


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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: utils-alloccontext.diff
Type: text/x-patch
Size: 364 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070713/c523c813/attachment.bin>

More information about the ffmpeg-devel mailing list