[FFmpeg-devel] [PATCH] Fix return value for incomplete H264 frame packets

Pásztor Szilárd don
Wed Aug 25 13:40:38 CEST 2010

Michael Niedermayer:
> repeat_pict is set correctly, an application can use it to find the frame
> duration. If its not set correctly thats a bug and should be fixed
> your patch does export a nonsense and wrong value that does often not
> represent the frame duration and that often will not work

Ok then here's a patch that adds the status flags suggested by Reimar
D?ffinger. It is a generalized solution of what I wanted so I'm happy with it.
These flags can be incrementally added to any decoder if needed.

(And yes repeat_pict is set correctly, I never said otherwise. But it's not
suitable to solve this problem because a frame duration of 0 is needed
for a first-field-only packet and you can't sign that with this flag,
by definition. That's it.)

           |           It's not enough simply to bathe,            |
           |  you should also change the water from time to time.  |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg-2010-08-25-statusflags.diff
Type: application/octet-stream
Size: 3455 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100825/831c3c2d/attachment.obj>

More information about the ffmpeg-devel mailing list