[FFmpeg-cvslog] avidec: dont randomly skip packets for offseting the index
Michael Niedermayer
git at videolan.org
Fri May 17 23:03:18 CEST 2013
ffmpeg | branch: release/0.9 | Michael Niedermayer <michaelni at gmx.at> | Fri May 17 22:03:14 2013 +0200| [b22cc0c15de7f4a428ffc226d4500f4f80b1dae9] | committer: Carl Eugen Hoyos
avidec: dont randomly skip packets for offseting the index
Fixes Ticket2490
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 6c593f1b671b7725b8c36f92f7c0a23ccf8e7628)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b22cc0c15de7f4a428ffc226d4500f4f80b1dae9
---
libavformat/avidec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index de8933c..6af070a 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -959,9 +959,9 @@ start_sync:
|| st->discard >= AVDISCARD_ALL){
if (!exit_early) {
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) {
More information about the ffmpeg-cvslog
mailing list