[FFmpeg-devel] [PATCH] flag CODEC_FLAG2_RETURN_INCOMPLETE_FRAMES
Sun Nov 7 12:04:17 CET 2010
On 06.11.2010 21:22, Jason Garrett-Glaser wrote:
> 2010/11/5 Anatoly Nenashev<anatoly.nenashev at ovsoft.ru>:
>> Due to Michael's comments in a thread "MxPEG decoder" the flag
>> CODEC_FLAG2_RETURN_INCOMPLETE_FRAMES has been added.
>> It can be useful for h264 format also.
> Is this related to the patch I have here (hack)?
> This patch allows the user, when using CHUNKS mode, to say "the frame
> is done, give it to me" even if the frame isn't done. Use-case: if
> the last packet of a frame is lost, libavcodec will NEVER return the
> I've only implemented it for H.264.
Yes, I think this flag can be used in the case described by you. In case
of MxPEG the decoder receives only some parts of all image in each
So in usual case the user will receive picture only after the series of
incoming packets. But if the flag CODEC_FLAG_RETURN_INCOMPLETE_FRAMES
is available then the picture will be created from the first packet.
This picture may contain a lot of holes but this is a user's problem.
The main question to community is a name of this flag. May be it's too
long or somebody just has a better idea.
More information about the ffmpeg-devel