projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
086e4b5
)
vaapi_h264: Set max_num_ref_frames to 1 when not using B frames
author
Mark Thompson
<sw@jkqxz.net>
Tue, 27 Sep 2016 18:08:42 +0000
(19:08 +0100)
committer
Mark Thompson
<sw@jkqxz.net>
Wed, 28 Sep 2016 21:54:11 +0000
(22:54 +0100)
libavcodec/vaapi_encode_h264.c
patch
|
blob
|
blame
|
history
diff --git
a/libavcodec/vaapi_encode_h264.c
b/libavcodec/vaapi_encode_h264.c
index
0cd966f
..
020f892
100644
(file)
--- a/
libavcodec/vaapi_encode_h264.c
+++ b/
libavcodec/vaapi_encode_h264.c
@@
-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;