summaryrefslogtreecommitdiff
path: root/libavcodec/h264_ps.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2019-04-10 15:26:30 -0300
committerJames Almer <jamrial@gmail.com>2019-04-24 18:30:07 -0300
commit53cc3338f7b24cda40ad8a69e12b37e7335f37ff (patch)
treec7f1c4b5aea05953ee5977d32359ec3010dd34d2 /libavcodec/h264_ps.h
parent604421630bd5db400f9085b0a969fb1ab664dc81 (diff)
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: Mark Thompson <sw@jkqxz.net> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/h264_ps.h')
-rw-r--r--libavcodec/h264_ps.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264_ps.h b/libavcodec/h264_ps.h
index e967b9cbcf..9014326dfb 100644
--- a/libavcodec/h264_ps.h
+++ b/libavcodec/h264_ps.h
@@ -81,7 +81,7 @@ typedef struct SPS {
uint32_t num_units_in_tick;
uint32_t time_scale;
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 num_reorder_frames;
int scaling_matrix_present;