[FFmpeg-cvslog] r17596 - trunk/libavcodec/vdpau.c

cehoyos subversion
Thu Feb 26 02:03:02 CET 2009


Author: cehoyos
Date: Thu Feb 26 02:03:01 2009
New Revision: 17596

Log:
Do not set h264.is_reference for pictures that are delayed, but not
actually reference frames.

Patch by NVIDIA

Modified:
   trunk/libavcodec/vdpau.c

Modified: trunk/libavcodec/vdpau.c
==============================================================================
--- trunk/libavcodec/vdpau.c	Thu Feb 26 01:29:01 2009	(r17595)
+++ trunk/libavcodec/vdpau.c	Thu Feb 26 02:03:01 2009	(r17596)
@@ -147,7 +147,7 @@ void ff_vdpau_h264_picture_complete(Mpeg
         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;




More information about the ffmpeg-cvslog mailing list