[FFmpeg-cvslog] avformat/utils: replace impossible condition by av_assert0() in ff_gen_search()
Michael Niedermayer
git at videolan.org
Tue Dec 9 18:18:35 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Dec 9 17:53:30 2014 +0100| [041c6109da206cc8baf1f53b2e9a1c5c881f1641] | committer: Michael Niedermayer
avformat/utils: replace impossible condition by av_assert0() in ff_gen_search()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=041c6109da206cc8baf1f53b2e9a1c5c881f1641
---
libavformat/utils.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 3447b35..1bd21a2 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) {
More information about the ffmpeg-cvslog
mailing list