Commit f70f71d6 authored by Anton Khirnov's avatar Anton Khirnov

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: 's avatarBradley Sepos <bradley@bradleysepos.com>
CC: libav-stable@libav.org
parent a05c6e8c
...@@ -268,7 +268,7 @@ typedef struct H264SliceContext { ...@@ -268,7 +268,7 @@ typedef struct H264SliceContext {
* according to picture reordering in slice header */ * according to picture reordering in slice header */
struct { struct {
uint8_t op; uint8_t op;
uint8_t val; uint32_t val;
} ref_modifications[2][32]; } ref_modifications[2][32];
int nb_ref_modifications[2]; int nb_ref_modifications[2];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment