Commit 6d579d7c authored by Tobias Rapp's avatar Tobias Rapp Committed by Michael Niedermayer

avformat/avidec: skip odml master index chunks in avi_sync

Fixes pts gaps when reading AVI files > 256GiB generated by FFmpeg.
Signed-off-by: 's avatarTobias Rapp <t.rapp@noa-archive.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent c193132c
...@@ -1211,7 +1211,8 @@ start_sync: ...@@ -1211,7 +1211,8 @@ start_sync:
if ((d[0] == 'i' && d[1] == 'x' && n < s->nb_streams) || if ((d[0] == 'i' && d[1] == 'x' && n < s->nb_streams) ||
// parse JUNK // parse JUNK
(d[0] == 'J' && d[1] == 'U' && d[2] == 'N' && d[3] == 'K') || (d[0] == 'J' && d[1] == 'U' && d[2] == 'N' && d[3] == 'K') ||
(d[0] == 'i' && d[1] == 'd' && d[2] == 'x' && d[3] == '1')) { (d[0] == 'i' && d[1] == 'd' && d[2] == 'x' && d[3] == '1') ||
(d[0] == 'i' && d[1] == 'n' && d[2] == 'd' && d[3] == 'x')) {
avio_skip(pb, size); avio_skip(pb, size);
goto start_sync; goto start_sync;
} }
......
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