[Ffmpeg-cvslog] CVS: ffmpeg/libavformat utils.c,1.176,1.177
Michael Niedermayer CVS
michael
Thu Feb 2 20:23:36 CET 2006
Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv19562
Modified Files:
utils.c
Log Message:
sanity checks for seeking
Index: utils.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/utils.c,v
retrieving revision 1.176
retrieving revision 1.177
diff -u -d -r1.176 -r1.177
--- utils.c 2 Feb 2006 11:27:35 -0000 1.176
+++ utils.c 2 Feb 2006 19:23:33 -0000 1.177
@@ -1348,6 +1348,12 @@
pos_limit= pos_max;
}
+ if(ts_min > ts_max){
+ return -1;
+ }else if(ts_min == ts_max){
+ pos_limit= pos_min;
+ }
+
no_change=0;
while (pos_min < pos_limit) {
#ifdef DEBUG_SEEK
More information about the ffmpeg-cvslog
mailing list