[FFmpeg-devel] [PATCH] proper avcodec_get_context_defaults2

Alex Beregszaszi alex
Fri Jul 13 14:27:22 CEST 2007


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

Well, if they don't pass, there must be some bad assumptions in some
formats which have to be fixed. Right?

--
Alex





More information about the ffmpeg-devel mailing list