Commit 041c6109 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/utils: replace impossible condition by av_assert0() in ff_gen_search()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 308429e1
......@@ -1917,10 +1917,7 @@ int64_t ff_gen_search(AVFormatContext *s, int stream_index, int64_t target_ts,
return pos_max;
}
if (ts_min > ts_max)
return -1;
else if (ts_min == ts_max)
pos_limit = pos_min;
av_assert0(ts_min < ts_max);
no_change = 0;
while (pos_min < pos_limit) {
......
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