[FFmpeg-devel] [PATCH] H264 parser fix
Mon May 24 20:25:05 CEST 2010
Michael Niedermayer wrote:
> On Wed, May 19, 2010 at 01:15:17AM -0700, Howard Chu wrote:
>> 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.
> ugly ugly ugly
> if iam not mistaken this would be fixed by making the parser work with
> mov/mkv ("avc") style h264
I read thru mov.c and matroskadec.c and couldn't find anything relevant, so I
don't understand what your suggestion means.
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
More information about the ffmpeg-devel