diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-02-03 13:05:27 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-02-10 16:26:16 -0500 |
commit | 53ea595eec984e3109310e8bb7ff4b5786d91057 (patch) | |
tree | dc037335491e6d6630ec20e21b64cb6771df5cc4 /libavformat/isom.h | |
parent | ce6d72d10776b03c6780d4aa676414ce002285d4 (diff) | |
download | ffmpeg-53ea595eec984e3109310e8bb7ff4b5786d91057.tar.gz |
mov: Rework stsc index validation
In order to avoid potential integer overflow change the comparison
and make sure to use the same unsigned type for both elements.
Diffstat (limited to 'libavformat/isom.h')
-rw-r--r-- | libavformat/isom.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/isom.h b/libavformat/isom.h index 85b876106f..8cc5ab744d 100644 --- a/libavformat/isom.h +++ b/libavformat/isom.h @@ -111,7 +111,7 @@ typedef struct MOVStreamContext { MOVStts *ctts_data; unsigned int stsc_count; MOVStsc *stsc_data; - int stsc_index; + unsigned int stsc_index; int stsc_sample; unsigned int stps_count; unsigned *stps_data; ///< partial sync sample for mpeg-2 open gop |