Commit ab06436d authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '5268bd29'

* commit '5268bd29':
  segafilm: Error out on impossible packet size
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 070c22d5 5268bd29
......@@ -215,6 +215,8 @@ static int film_read_header(AVFormatContext *s)
film->sample_table[i].sample_offset =
data_offset + AV_RB32(&scratch[0]);
film->sample_table[i].sample_size = AV_RB32(&scratch[4]);
if (film->sample_table[i].sample_size > INT_MAX / 4)
return AVERROR_INVALIDDATA;
if (AV_RB32(&scratch[8]) == 0xFFFFFFFF) {
film->sample_table[i].stream = film->audio_stream_index;
film->sample_table[i].pts = audio_frame_counter;
......
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