Skip to content

Commit

Permalink
h264dec: use a large enough field for reference list modification values
Browse files Browse the repository at this point in the history
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
  • Loading branch information
elenril committed Aug 18, 2017
1 parent a05c6e8 commit f70f71d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavcodec/h264dec.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit f70f71d

Please sign in to comment.