Mercurial > libavcodec.hg
changeset 9049:16d0dfacd6c2 libavcodec
Do not set h264.is_reference for pictures that are delayed, but not
actually reference frames.
Patch by NVIDIA
author | cehoyos |
---|---|
date | Thu, 26 Feb 2009 01:03:01 +0000 |
parents | 058e47a00893 |
children | 9653d4585183 |
files | vdpau.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/vdpau.c Thu Feb 26 00:29:01 2009 +0000 +++ b/vdpau.c Thu Feb 26 01:03:01 2009 +0000 @@ -147,7 +147,7 @@ render->info.h264.field_order_cnt[i] = foc; } - render->info.h264.is_reference = s->current_picture_ptr->reference ? VDP_TRUE : VDP_FALSE; + render->info.h264.is_reference = (s->current_picture_ptr->reference & 3) ? VDP_TRUE : VDP_FALSE; render->info.h264.frame_num = h->frame_num; render->info.h264.field_pic_flag = s->picture_structure != PICT_FRAME; render->info.h264.bottom_field_flag = s->picture_structure == PICT_BOTTOM_FIELD;