diff h264.c @ 8558:a5a04d73a570 libavcodec

Move vdpau_h264_set_reference_frames() call from vdpauvideo.c into h264.c.
author cehoyos
date Sat, 10 Jan 2009 02:45:07 +0000
parents 24c5744c3e96
children 187862685e70
line wrap: on
line diff
--- a/h264.c	Fri Jan 09 22:22:40 2009 +0000
+++ b/h264.c	Sat Jan 10 02:45:07 2009 +0000
@@ -7624,6 +7624,9 @@
         s->current_picture_ptr->qscale_type= FF_QSCALE_TYPE_H264;
         s->current_picture_ptr->pict_type= s->pict_type;
 
+        if (ENABLE_H264_VDPAU_DECODER && avctx->codec_id == CODEC_ID_H264_VDPAU)
+            ff_vdpau_h264_set_reference_frames(h);
+
         if(!s->dropable) {
             execute_ref_pic_marking(h, h->mmco, h->mmco_index);
             h->prev_poc_msb= h->poc_msb;