[FFmpeg-cvslog] avformat/utils: remove assert that tests the same condition as the if() directly above

Michael Niedermayer git at videolan.org
Tue Aug 26 15:30:22 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Aug 26 15:23:23 2014 +0200| [46ad2c4aeddfca20c443f98a0cab117c783838e8] | committer: Michael Niedermayer

avformat/utils: remove assert that tests the same condition as the if() directly above

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=46ad2c4aeddfca20c443f98a0cab117c783838e8
---

 libavformat/utils.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 14896cc..6e828f7 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -1911,7 +1911,6 @@ int64_t ff_gen_search(AVFormatContext *s, int stream_index, int64_t target_ts,
             av_log(s, AV_LOG_ERROR, "read_timestamp() failed in the middle\n");
             return -1;
         }
-        assert(ts != AV_NOPTS_VALUE);
         if (target_ts <= ts) {
             pos_limit = start_pos - 1;
             pos_max   = pos;



More information about the ffmpeg-cvslog mailing list