diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-03-09 17:15:26 +0100 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2014-03-09 14:55:38 -0400 |
commit | ca2c9d6b9bfadb64e1502594fdf745a391699890 (patch) | |
tree | 85c41acb5a6972f8e4d08d1e2774a463be278b58 /libavcodec/hevc.h | |
parent | fa6b99d351ed483766a875054676a56fd8459774 (diff) | |
download | ffmpeg-ca2c9d6b9bfadb64e1502594fdf745a391699890.tar.gz |
hevc: make pps/sps ids unsigned where necessary
Fixes integer overflow and out of array accesses.
Found-by: Mateusz j00ru Jurczyk and Gynvael Coldwind
(cherry picked from commit 4d33873c2990b8d6096f60fef384f0efc4482b55)
Diffstat (limited to 'libavcodec/hevc.h')
-rw-r--r-- | libavcodec/hevc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc.h b/libavcodec/hevc.h index accfcb6107..1197d08193 100644 --- a/libavcodec/hevc.h +++ b/libavcodec/hevc.h @@ -463,7 +463,7 @@ typedef struct HEVCSPS { } HEVCSPS; typedef struct HEVCPPS { - int sps_id; ///< seq_parameter_set_id + unsigned int sps_id; ///< seq_parameter_set_id uint8_t sign_data_hiding_flag; |