From: Michael Niedermayer <[email protected]>

Fixes integer overflow and out of array accesses.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
---
 libavcodec/hevc.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/hevc.h b/libavcodec/hevc.h
index accfcb6..4b96087 100644
--- a/libavcodec/hevc.h
+++ b/libavcodec/hevc.h
@@ -382,7 +382,7 @@ typedef struct ScalingList {
 } ScalingList;
 
 typedef struct HEVCSPS {
-    int vps_id;
+    unsigned vps_id;
     int chroma_format_idc;
     uint8_t separate_colour_plane_flag;
 
@@ -463,7 +463,7 @@ typedef struct HEVCSPS {
 } HEVCSPS;
 
 typedef struct HEVCPPS {
-    int sps_id; ///< seq_parameter_set_id
+    unsigned sps_id; ///< seq_parameter_set_id
 
     uint8_t sign_data_hiding_flag;
 
-- 
1.8.3.4 (Apple Git-47)

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to