avcodec/h264_ps: fix storage size for offset_for_ref_frame
authorJames Almer <jamrial@gmail.com>
Wed, 10 Apr 2019 18:26:30 +0000 (15:26 -0300)
committerJames Almer <jamrial@gmail.com>
Wed, 24 Apr 2019 21:30:07 +0000 (18:30 -0300)
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>
libavcodec/h264_ps.h

index e967b9c..9014326 100644 (file)
@@ -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;