mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-11 17:30:00 +01:00
avidec: dont randomly skip packets for offseting the index
Fixes Ticket2490
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 6c593f1b67)
This commit is contained in:
committed by
Carl Eugen Hoyos
parent
79a3f364dd
commit
fd60aeb55b
@@ -1005,9 +1005,9 @@ start_sync:
|
|||||||
|| st->discard >= AVDISCARD_ALL){
|
|| st->discard >= AVDISCARD_ALL){
|
||||||
if (!exit_early) {
|
if (!exit_early) {
|
||||||
ast->frame_offset += get_duration(ast, size);
|
ast->frame_offset += get_duration(ast, size);
|
||||||
|
avio_skip(pb, size);
|
||||||
|
goto start_sync;
|
||||||
}
|
}
|
||||||
avio_skip(pb, size);
|
|
||||||
goto start_sync;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (d[2] == 'p' && d[3] == 'c' && size<=4*256+4) {
|
if (d[2] == 'p' && d[3] == 'c' && size<=4*256+4) {
|
||||||
|
|||||||
Reference in New Issue
Block a user