diff options
author | James Almer <jamrial@gmail.com> | 2018-11-10 22:51:18 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2018-11-14 20:53:40 -0300 |
commit | 49bc641e89f7c89648f28feafa2daa3756ba9c7d (patch) | |
tree | 637663bd0a199102a6369981d77b10103e892b84 | |
parent | 4f1e07090a9f6064078cac694f1d7148f86176c3 (diff) | |
download | ffmpeg-49bc641e89f7c89648f28feafa2daa3756ba9c7d.tar.gz |
avcodec/cbs_av1: fix storage size for segmentation_params feature_value fields
The valid range is -255 to 255.
Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 79831f4531d98c3c1eab96c10f1135d08abef5f3)
-rw-r--r-- | libavcodec/cbs_av1.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cbs_av1.h b/libavcodec/cbs_av1.h index f662265f75..84622ed189 100644 --- a/libavcodec/cbs_av1.h +++ b/libavcodec/cbs_av1.h @@ -210,7 +210,7 @@ typedef struct AV1RawFrameHeader { uint8_t segmentation_temporal_update; uint8_t segmentation_update_data; uint8_t feature_enabled[AV1_MAX_SEGMENTS][AV1_SEG_LVL_MAX]; - uint8_t feature_value[AV1_MAX_SEGMENTS][AV1_SEG_LVL_MAX]; + int16_t feature_value[AV1_MAX_SEGMENTS][AV1_SEG_LVL_MAX]; uint8_t delta_q_present; uint8_t delta_q_res; |