[FFmpeg-devel] [RFC]current_picture_ptr->reference

Michael Niedermayer michaelni
Thu Feb 26 01:57:24 CET 2009


On Thu, Feb 26, 2009 at 01:21:27AM +0100, Carl Eugen Hoyos wrote:
> Hi!
>
> In avcodec.h, FFCOMMONFRAME.reference is defined as being either 1, 2 or 3, 
> depending on which kind of reference it is.
> In h264.c, the field can be set to DELAYED_PIC_REF (=4, line 3094).
> Is this correct?

yes
4 means that the pic has not been output yet and thus cant be freed yet.

>
> The reason I ask is that NVIDIA suggests attached patch to make sure that 
> vdpau gets the correct value for h264.is_reference.

i suspect the patch is correct

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

No snowflake in an avalanche ever feels responsible. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090226/fb81eeed/attachment.pgp>



More information about the ffmpeg-devel mailing list