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

Reimar Döffinger Reimar.Doeffinger
Tue Aug 24 20:32:16 CEST 2010


On Tue, Aug 24, 2010 at 06:19:37PM +0200, P?sztor Szil?rd wrote:
> Michael Niedermayer:
> > > I'd only like to be able to recognize the
> > > differences between different causes of "no picture" from the outside.
> > > If not via my hack, then via anything else that works, that's fine with
> > > me. Currently lavc seems to swallow part of that information.
> > 
> > ive no problem with a clean patch that exports such information
> 
> Ok, it won't hurt to try anyway. Here is a small patch that I believe is
> clean and maintains compatibility. Works with mplayer.

I'd like to suggest adding a "status" flags field for decoders instead.
My proposal would be for every decode call to first reset it to 0 and
then set one or more of e.g. these flags (names to be determined):
 - concealed bitstream error
 - concealed missing reference frames
 - frame too badly damaged for concealment
 - insufficient data to generate output
 - reorder buffer still filling
 - frame is unchanged



More information about the ffmpeg-devel mailing list