projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8a91af
)
sanity checks for seeking
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 2 Feb 2006 19:23:33 +0000
(19:23 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 2 Feb 2006 19:23:33 +0000
(19:23 +0000)
Originally committed as revision 4927 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
1b6b339
..
41abcea
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-1348,6
+1348,12
@@
int av_seek_frame_binary(AVFormatContext *s, int stream_index, int64_t target_ts
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