Skip to content
Snippets Groups Projects
Commit 53f7c43f authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

sanity checks for seeking

Originally committed as revision 4927 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent d8a91afd
No related branches found
No related tags found
No related merge requests found
...@@ -1348,6 +1348,12 @@ int av_seek_frame_binary(AVFormatContext *s, int stream_index, int64_t target_ts ...@@ -1348,6 +1348,12 @@ int av_seek_frame_binary(AVFormatContext *s, int stream_index, int64_t target_ts
pos_limit= pos_max; pos_limit= pos_max;
} }
if(ts_min > ts_max){
return -1;
}else if(ts_min == ts_max){
pos_limit= pos_min;
}
no_change=0; no_change=0;
while (pos_min < pos_limit) { while (pos_min < pos_limit) {
#ifdef DEBUG_SEEK #ifdef DEBUG_SEEK
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment