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

Michael Niedermayer michaelni
Wed Aug 25 11:35:04 CEST 2010


On Tue, Aug 24, 2010 at 08:32:16PM +0200, Reimar D?ffinger wrote:
> 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

these 2 need better definitions

the idea in general seems good to me though

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Opposition brings concord. Out of discord comes the fairest harmony.
-- Heraclitus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100825/05407151/attachment.pgp>



More information about the ffmpeg-devel mailing list