Commit 84c0c6da authored by michael's avatar michael

sanity checks for seeking


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4927 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent acb39e93
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment