Commit 53cc3338 authored by James Almer's avatar James Almer

avcodec/h264_ps: fix storage size for offset_for_ref_frame

The spec defines the valid range of values to be INT32_MIN + 1 to INT32_MAX, inclusive.
Reviewed-by: 's avatarMark Thompson <sw@jkqxz.net>
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 60442163
...@@ -81,7 +81,7 @@ typedef struct SPS { ...@@ -81,7 +81,7 @@ typedef struct SPS {
uint32_t num_units_in_tick; uint32_t num_units_in_tick;
uint32_t time_scale; uint32_t time_scale;
int fixed_frame_rate_flag; int fixed_frame_rate_flag;
short offset_for_ref_frame[256]; // FIXME dyn aloc? int32_t offset_for_ref_frame[256];
int bitstream_restriction_flag; int bitstream_restriction_flag;
int num_reorder_frames; int num_reorder_frames;
int scaling_matrix_present; int scaling_matrix_present;
......
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