diff options
author | James Almer <jamrial@gmail.com> | 2023-04-30 18:24:23 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2023-04-30 18:29:34 -0300 |
commit | 45fc89bb14989a585be024faf1349806a1acbb9a (patch) | |
tree | 19d28767b27ab72eb2b036c7e1570d4b502a3381 /libavcodec/vaapi_hevc.c | |
parent | 0275d994271ded88b3bf31b6d24686ecbc0e750d (diff) | |
download | ffmpeg-45fc89bb14989a585be024faf1349806a1acbb9a.tar.gz |
avcodec/hevc_ps: use get_ue_golomb() for some SPS Screen Content Coding extension fields
Also remove the _minus1 part of the name to be in line with the rest of the
decoder.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/vaapi_hevc.c')
-rw-r--r-- | libavcodec/vaapi_hevc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vaapi_hevc.c b/libavcodec/vaapi_hevc.c index 984af75c84..17c38963f8 100644 --- a/libavcodec/vaapi_hevc.c +++ b/libavcodec/vaapi_hevc.c @@ -259,7 +259,7 @@ static int vaapi_hevc_start_frame(AVCodecContext *avctx, pre_palette_size = pps->pps_palette_predictor_initializers_present_flag ? pps->pps_num_palette_predictor_initializers : (sps->sps_palette_predictor_initializers_present_flag ? - sps->sps_num_palette_predictor_initializers_minus1 + 1 : + sps->sps_num_palette_predictor_initializers : 0); if (avctx->profile == FF_PROFILE_HEVC_SCC) { |