Commit 6c4b87d3 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/thp: force moving forward

Fixes infinite loop
Fixes Ticket3098
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2b1056e4
......@@ -158,7 +158,7 @@ static int thp_read_packet(AVFormatContext *s,
avio_seek(pb, thp->next_frame, SEEK_SET);
/* Locate the next frame and read out its size. */
thp->next_frame += thp->next_framesz;
thp->next_frame += FFMAX(thp->next_framesz, 1);
thp->next_framesz = avio_rb32(pb);
avio_rb32(pb); /* Previous total size. */
......
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