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

Laurent Aimar fenrir
Mon Aug 23 16:51:09 CEST 2010


On Mon, Aug 23, 2010 at 03:54:54PM +0200, P?sztor Szil?rd wrote:
> Carl Eugen Hoyos:
> > I believe I already explained (on mplayer-dev-eng) that this patch makes
> > ffmpeg print one warning message for every second PAFF field, so I don't
> > think it is acceptable as-is.
> 
> Sorry, I didn't read your next mail before sending mine.
> On mplayer-dev-eng we kind of agreed that lavc should sign somehow that it
> received an incomplete frame (first field only, that is).
> Still something not right here :(
> 
> Laurent Aimar:
> >  Unless I misunderstood the current code, avcodec will consume the first
> > field, properly decode it and return no pictures and no errors. If so, it
> > seems the right behavior to me.
> 
> You understood it correctly. The question is if it should be a task of the
> decoder to call for more data.
 The current code already does it. It consumes all bytes and return no pictures.
Obviously, more data are needed to have a frame ready.

-- 
fenrir




More information about the ffmpeg-devel mailing list