# HG changeset patch # User cehoyos # Date 1235610181 0 # Node ID 16d0dfacd6c26b811bc782f992b002600a3dd04c # Parent 058e47a008930e8b85fdcae283cfbbbca58f7f3e Do not set h264.is_reference for pictures that are delayed, but not actually reference frames. Patch by NVIDIA diff -r 058e47a00893 -r 16d0dfacd6c2 vdpau.c --- 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;