[FFmpeg-cvslog] vaapi_h264: Fix VUI max_dec_frame_buffering
Jun Zhao
git at videolan.org
Mon Dec 11 01:58:44 EET 2017
ffmpeg | branch: master | Jun Zhao <jun.zhao at intel.com> | Tue Oct 24 13:25:21 2017 +0800| [4b57f064477cd39e7236897bbbb90b909e6deed2] | committer: Mark Thompson
vaapi_h264: Fix VUI max_dec_frame_buffering
This should refer to the existing SPS structure, not the VAAPI sequence
parameter buffer (which is not yet initialised).
>From ffmpeg commit f31478ba1472afe5c1eed60f219ae331816425a2.
Signed-off-by: Mark Thompson <sw at jkqxz.net>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4b57f064477cd39e7236897bbbb90b909e6deed2
---
libavcodec/vaapi_encode_h264.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/vaapi_encode_h264.c b/libavcodec/vaapi_encode_h264.c
index 03605b05b2..e6a166698b 100644
--- a/libavcodec/vaapi_encode_h264.c
+++ b/libavcodec/vaapi_encode_h264.c
@@ -453,7 +453,7 @@ static int vaapi_encode_h264_init_sequence_params(AVCodecContext *avctx)
sps->vui.log2_max_mv_length_horizontal = 16;
sps->vui.log2_max_mv_length_vertical = 16;
sps->vui.max_num_reorder_frames = (ctx->b_per_p > 0);
- sps->vui.max_dec_frame_buffering = vseq->max_num_ref_frames;
+ sps->vui.max_dec_frame_buffering = sps->max_num_ref_frames;
pps->nal_unit_header.nal_ref_idc = 3;
pps->nal_unit_header.nal_unit_type = H264_NAL_PPS;
More information about the ffmpeg-cvslog
mailing list