[Ffmpeg-devel] Re:understand unreference_pic()

Michael Niedermayer michaelni
Thu Jun 9 11:16:56 CEST 2005


On Thursday 09 June 2005 09:26, Chengji Zhao wrote:
> Hi  Loren,
> Thank you for your reply.
> Are you saying that
>  when  pic->reference ==3  means  a valid reference frame and need to be
> output
>            pic->reference ==1 means  a frame pending to be output and no
> longer be referred to
>            pic->reference ==0 means a freme has been outputed and will
> no longer be refered to?

mostly, 3 does mean that its a valid reference frame, it doesnt say anything 
about if it still needs to be output or not

originally pic->reference was supposed to contain flags for the top and bottom 
fields, so 3 meant that both fields are still referenced, 1 would mean only 
top and 2 only bottom
IMHO the current pic->reference ==1 should be changed to 4


More information about the ffmpeg-devel mailing list