[FFmpeg-devel] [PATCH] H264 parser fix

Howard Chu hyc
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...
Name: ppssps.txt
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100519/e7347940/attachment.txt>

More information about the ffmpeg-devel mailing list