[FFmpeg-cvslog] avidec: skip seek pos adjustment for non interleaved files.
Michael Niedermayer
git at videolan.org
Thu Aug 4 01:35:46 CEST 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Aug 4 01:04:50 2011 +0200| [72b0c9f55f26049e22bf147ab120173bd1d54cd5] | committer: Michael Niedermayer
avidec: skip seek pos adjustment for non interleaved files.
Fixes Ticket327
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=72b0c9f55f26049e22bf147ab120173bd1d54cd5
---
libavformat/avidec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 5dac749..d454ce5 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -1410,7 +1410,7 @@ static int avi_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp
flags | AVSEEK_FLAG_BACKWARD | (st2->codec->codec_type != AVMEDIA_TYPE_VIDEO ? AVSEEK_FLAG_ANY : 0));
if(index<0)
index=0;
- while(index>0 && st2->index_entries[index-1].pos >= pos_min)
+ while(!avi->non_interleaved && index>0 && st2->index_entries[index-1].pos >= pos_min)
index--;
ast2->frame_offset = st2->index_entries[index].timestamp;
}
More information about the ffmpeg-cvslog
mailing list