[FFmpeg-devel] All packets are marked with PKT_FLAG_KEY when reading AVI files
Michael Niedermayer
michaelni
Mon Sep 7 19:33:17 CEST 2009
On Mon, Sep 07, 2009 at 05:03:00PM +0300, Eyal Beit-Halachmi wrote:
> Hello,
> When reading video frames from AVI files using av_read_frame(), all
> packets read have their packet->flags set to PKT_FLAG_KEY
> In avidec.c, in avi_read_header(), for CODEC_TYPE_VIDEO codec, the
> "need_parsing" is set to "st->need_parsing = AVSTREAM_PARSE_HEADERS ".
> Then in utils.c, av_read_frame_internal(), the parser is initialized
> and set to parse whole frames "st->parser->flags |=
> PARSER_FLAG_COMPLETE_FRAMES ".
>
> But when setting to parse whole frames, various parsers do not parse
> but rather skip to the end of frame.
such parsers are buggy, a patch fixing them is welcome
> Here is h264_parse() and mpeg4_parse() code that do the skip:
mpeg4 is correct, h264 is not theres some code in the if() that belongs
to after it
again, (tested) patch welcome!
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato
-------------- 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/20090907/4284f6fe/attachment.pgp>
More information about the ffmpeg-devel
mailing list