]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/dxva2_h264.c
avcodec/libx264: Remove unused variable
[ffmpeg] / libavcodec / dxva2_h264.c
index bd1fa1ee7166fbdff5314165599e12982fb277b6..84a8e6c3c9cfcd79eaf6a3be2017a93b36054d8b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * DXVA2 H264 HW acceleration.
+ * DXVA2 H.264 HW acceleration.
  *
  * copyright (c) 2009 Laurent Aimar
  *
@@ -145,7 +145,7 @@ static void fill_picture_parameters(const AVCodecContext *avctx, AVDXVAContext *
     pp->num_ref_idx_l0_active_minus1  = pps->ref_count[0] - 1;
     pp->num_ref_idx_l1_active_minus1  = pps->ref_count[1] - 1;
     pp->Reserved8BitsA                = 0;
-    pp->frame_num                     = h->frame_num;
+    pp->frame_num                     = h->poc.frame_num;
     pp->log2_max_frame_num_minus4     = sps->log2_max_frame_num - 4;
     pp->pic_order_cnt_type            = sps->poc_type;
     if (sps->poc_type == 0)