Commit ee1d04f9 authored by Mark Thompson's avatar Mark Thompson

vaapi_h264: Set max_num_ref_frames to 1 when not using B frames

(cherry picked from commit 956a5412)
parent 94f446c6
...@@ -778,7 +778,7 @@ static int vaapi_encode_h264_init_sequence_params(AVCodecContext *avctx) ...@@ -778,7 +778,7 @@ static int vaapi_encode_h264_init_sequence_params(AVCodecContext *avctx)
vseq->level_idc = avctx->level; 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_width_in_mbs = priv->mb_width;
vseq->picture_height_in_mbs = priv->mb_height; vseq->picture_height_in_mbs = priv->mb_height;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment