[FFmpeg-cvslog] r21633 - trunk/libavformat/utils.c
michael
subversion
Thu Feb 4 00:59:48 CET 2010
Author: michael
Date: Thu Feb 4 00:59:48 2010
New Revision: 21633
Log:
Dont try generic seek if seek request before first index entry and backward.
Fixes issue1275
Modified:
trunk/libavformat/utils.c
Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c Thu Feb 4 00:34:06 2010 (r21632)
+++ trunk/libavformat/utils.c Thu Feb 4 00:59:48 2010 (r21633)
@@ -1548,6 +1548,9 @@ static int av_seek_frame_generic(AVForma
index = av_index_search_timestamp(st, timestamp, flags);
+ if(index < 0 && st->nb_index_entries && timestamp < st->index_entries[0].timestamp)
+ return -1;
+
if(index < 0 || index==st->nb_index_entries-1){
int i;
AVPacket pkt;
More information about the ffmpeg-cvslog
mailing list