[FFmpeg-devel] [PATCH] H264 parser fix

Michael Niedermayer michaelni
Thu May 20 19:58:30 CEST 2010


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


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many that live deserve death. And some that die deserve life. Can you give
it to them? Then do not be too eager to deal out death in judgement. For
even the very wise cannot see all ends. -- Gandalf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100520/5190c3bb/attachment.pgp>



More information about the ffmpeg-devel mailing list