Browse Source

vaapi_h264: Set max_num_ref_frames to 1 when not using B frames

(cherry picked from commit 956a54129d)
tags/n3.3
Mark Thompson 8 years ago
parent
commit
ee1d04f970
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/vaapi_encode_h264.c

+ 1
- 1
libavcodec/vaapi_encode_h264.c View File

@@ -778,7 +778,7 @@ static int vaapi_encode_h264_init_sequence_params(AVCodecContext *avctx)

vseq->level_idc = avctx->level;

vseq->max_num_ref_frames = 2;
vseq->max_num_ref_frames = 1 + (avctx->max_b_frames > 0);

vseq->picture_width_in_mbs = priv->mb_width;
vseq->picture_height_in_mbs = priv->mb_height;


Loading…
Cancel
Save