summaryrefslogtreecommitdiff
path: root/libavcodec/hevc.h
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2014-01-11 12:33:42 +0100
committerLuca Barbato <lu_zero@gentoo.org>2014-01-21 11:59:18 +0100
commit838740e6420538ad45982da6b1d3aa3ae91307f5 (patch)
treeca4c1bf1bbb9e63e88263bb19b97cf0a504d787c /libavcodec/hevc.h
parentfaf03ecba03155bb1f5416713bd01da043863b43 (diff)
hevc: Prevent some integer overflows
get_ue_golomb_long() returns an unsigned. Sample-Id: 00001541-google Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
Diffstat (limited to 'libavcodec/hevc.h')
-rw-r--r--libavcodec/hevc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/hevc.h b/libavcodec/hevc.h
index 6c99d9bc5c..a674899b6f 100644
--- a/libavcodec/hevc.h
+++ b/libavcodec/hevc.h
@@ -261,7 +261,7 @@ enum ScanType {
};
typedef struct ShortTermRPS {
- int num_negative_pics;
+ unsigned int num_negative_pics;
int num_delta_pocs;
int32_t delta_poc[32];
uint8_t used[32];
@@ -528,7 +528,7 @@ typedef struct HEVCPPS {
} HEVCPPS;
typedef struct SliceHeader {
- int pps_id;
+ unsigned int pps_id;
///< address (in raster order) of the first block in the current slice segment
unsigned int slice_segment_addr;