Message ID | 20210524033514.5514-1-val.zapod.vz@gmail.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel] avfilter/src_movie: fix always true expression | expand |
Context | Check | Description |
---|---|---|
andriy/x86_make | success | Make finished |
andriy/x86_make_fate | success | Make fate finished |
andriy/PPC64_make | success | Make finished |
andriy/PPC64_make_fate | success | Make fate finished |
diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c index 54f6738f9a..105d1b7b54 100644 --- a/libavfilter/src_movie.c +++ b/libavfilter/src_movie.c @@ -252,7 +252,7 @@ static av_cold int movie_common_init(AVFilterContext *ctx) timestamp = movie->seek_point; // add the stream start time, should it exist if (movie->format_ctx->start_time != AV_NOPTS_VALUE) { - if (timestamp > 0 && movie->format_ctx->start_time > INT64_MAX - timestamp) { + if (movie->format_ctx->start_time > INT64_MAX - timestamp) { av_log(ctx, AV_LOG_ERROR, "%s: seek value overflow with start_time:%"PRId64" seek_point:%"PRId64"\n", movie->file_name, movie->format_ctx->start_time, movie->seek_point);