[FFmpeg-devel] [PATCH] H264 parser fix
Wed May 19 10:15:17 CEST 2010
When decoding an H264 stream that uses global headers, you get an endless
stream of "non-existing PPS referenced" messages. This message comes from
h264_parser.c, and it happens because it's using an H264Context hanging off
the AVCodecParserContext, which is separate from the H264Context hanging off
the AVCodecContext, and only the AVCodecContext contains the extradata that
provides the PPS and SPS.
This patch is admittedly a hack, but it stops the error. It just checks in the
AVCodecContext if the PPS wasn't found in the AVCodecParserContext.
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the ffmpeg-devel