Move vdpau_h264_set_reference_frames() call from vdpauvideo.c into h264.c.
[ffmpeg.git] / libavcodec / h264.c
index a8bd062..f5a8833 100644 (file)
@@ -7624,6 +7624,9 @@ static int decode_frame(AVCodecContext *avctx,
         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;