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

Carl Eugen Hoyos cehoyos
Thu Feb 26 02:04:02 CET 2009

Michael Niedermayer <michaelni <at> gmx.at> writes:

> > 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

The documentation in avcodec.h is also correct?

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

Thank you for explaining!

Patch applied, Carl Eugen

More information about the ffmpeg-devel mailing list