diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-06-20 17:17:25 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-06-20 20:36:12 +0000 |
commit | de0587739011b7636743251a86d48bcd10ab7c22 (patch) | |
tree | a3b27a7cac239a45dcb00a21e8b25a6dcc23450a /libavfilter/vsrc_color.c | |
parent | 4da42ebe4486f2960d64135395b1a9ef705d9429 (diff) |
lavfi: remove redundant checks after av_parse_video_rate()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/vsrc_color.c')
-rw-r--r-- | libavfilter/vsrc_color.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavfilter/vsrc_color.c b/libavfilter/vsrc_color.c index 7f4f4791ab..ba10ebf36f 100644 --- a/libavfilter/vsrc_color.c +++ b/libavfilter/vsrc_color.c @@ -90,8 +90,7 @@ static av_cold int color_init(AVFilterContext *ctx, const char *args, void *opaq av_log(ctx, AV_LOG_ERROR, "Error parsing options string: '%s'\n", args); goto end; } - if (av_parse_video_rate(&frame_rate_q, color->rate_str) < 0 || - frame_rate_q.den <= 0 || frame_rate_q.num <= 0) { + if (av_parse_video_rate(&frame_rate_q, color->rate_str) < 0) { av_log(ctx, AV_LOG_ERROR, "Invalid frame rate: %s\n", color->rate_str); ret = AVERROR(EINVAL); goto end; @@ -107,8 +106,7 @@ static av_cold int color_init(AVFilterContext *ctx, const char *args, void *opaq av_log(ctx, AV_LOG_ERROR, "Invalid frame size: %s\n", frame_size); return AVERROR(EINVAL); } - if (av_parse_video_rate(&frame_rate_q, frame_rate) < 0 || - frame_rate_q.den <= 0 || frame_rate_q.num <= 0) { + if (av_parse_video_rate(&frame_rate_q, frame_rate) < 0) { av_log(ctx, AV_LOG_ERROR, "Invalid frame rate: %s\n", frame_rate); return AVERROR(EINVAL); } |