avformat/utils: remove assert that tests the same condition as the if() directly...
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 26 Aug 2014 13:23:23 +0000 (15:23 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 26 Aug 2014 13:23:23 +0000 (15:23 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/utils.c

index 14896cc..6e828f7 100644 (file)
@@ -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;