summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2017-08-17 12:15:58 +0200
committerAnton Khirnov <anton@khirnov.net>2017-08-18 14:55:31 +0200
commitf70f71d60c7ae88c19078a48dc6e0789b78c7300 (patch)
tree04d9aae7de4bee21efa0194a472ec9f2a37a59b5 /libavcodec
parenta05c6e8c11b1a17b7c4529294751b917cf0d8e04 (diff)
h264dec: use a large enough field for reference list modification values
pic_num can be at most 17-bit, so uint8_t is not sufficient. Found-By: Bradley Sepos <bradley@bradleysepos.com> CC: libav-stable@libav.org
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h264dec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264dec.h b/libavcodec/h264dec.h
index ddfe224e93..cce5e198d9 100644
--- a/libavcodec/h264dec.h
+++ b/libavcodec/h264dec.h
@@ -268,7 +268,7 @@ typedef struct H264SliceContext {
* according to picture reordering in slice header */
struct {
uint8_t op;
- uint8_t val;
+ uint32_t val;
} ref_modifications[2][32];
int nb_ref_modifications[2];