mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
mov: Fix near infinite loop in stsd parsing.
Fixes Ticket768 Bug found by: Diana Elena Muscalu Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
4255d6d96c
commit
5f95c130a0
@ -1082,6 +1082,9 @@ int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries)
|
||||
avio_rb32(pb); /* reserved */
|
||||
avio_rb16(pb); /* reserved */
|
||||
dref_id = avio_rb16(pb);
|
||||
}else if (size <= 0){
|
||||
av_log(c->fc, AV_LOG_ERROR, "invalid size %d in stsd\n", size);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (st->codec->codec_tag &&
|
||||
|
Loading…
Reference in New Issue
Block a user