summaryrefslogtreecommitdiff
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-09 17:53:30 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-09 17:53:30 +0100
commit041c6109da206cc8baf1f53b2e9a1c5c881f1641 (patch)
tree3398644ba95ed98aa46dae5d4228533edb1e53a6 /libavformat/utils.c
parent308429e124b97337a768839c1d5091900e974e7e (diff)
avformat/utils: replace impossible condition by av_assert0() in ff_gen_search()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 3447b35c79..1bd21a25bc 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -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) {