]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/cbs_av1: fix storage size for segmentation_params feature_value fields
authorJames Almer <jamrial@gmail.com>
Sun, 11 Nov 2018 01:51:18 +0000 (22:51 -0300)
committerJames Almer <jamrial@gmail.com>
Wed, 14 Nov 2018 23:48:29 +0000 (20:48 -0300)
The valid range is -255 to 255.

Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/cbs_av1.h

index f662265f755f0be522d63b880ba714c347d394b9..84622ed189dc09d7cbddbc74a2b8a9026bd660bd 100644 (file)
@@ -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;