Mercurial > libavcodec.hg
diff mpegvideo.c @ 5723:49a5d44423ef libavcodec
h264/PAFF preparation: use DELAYED_PIC_REF to mark non-refs frames as held for delayed output
patch by Jeff Downs, heydowns a borg d com
original thread:
Subject: [FFmpeg-devel] [PATCH] Implement PAFF in H.264
Date: 18/09/07 20:30
author | andoma |
---|---|
date | Wed, 26 Sep 2007 13:28:13 +0000 |
parents | 1766e8863911 |
children | e8145dd711b5 |
line wrap: on
line diff
--- a/mpegvideo.c Tue Sep 25 23:34:48 2007 +0000 +++ b/mpegvideo.c Wed Sep 26 13:28:13 2007 +0000 @@ -907,8 +907,13 @@ pic= (AVFrame*)&s->picture[i]; } - pic->reference= (s->pict_type != B_TYPE || s->codec_id == CODEC_ID_H264) - && !s->dropable ? 3 : 0; + pic->reference= 0; + if (!s->dropable){ + if (s->codec_id == CODEC_ID_H264) + pic->reference = s->picture_structure; + else if (s->pict_type != B_TYPE) + pic->reference = 3; + } pic->coded_picture_number= s->coded_picture_number++;