diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-11-24 14:43:01 -0500 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-11-30 10:58:46 -0500 |
commit | 7f57ea143c55ce5732ef7e31e4b75ae6c307af13 (patch) | |
tree | bfc2e5aa29d221c57dc9d909c12a3fbf67cbc2d4 | |
parent | ca5f386e75c592ce25b8184516fd0d580ccb31bb (diff) | |
download | ffmpeg-7f57ea143c55ce5732ef7e31e4b75ae6c307af13.tar.gz |
vsrc_color: Drop unneeded variable
Bug-Id: CID 1339818
-rw-r--r-- | libavfilter/vsrc_color.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavfilter/vsrc_color.c b/libavfilter/vsrc_color.c index b58c11a57d..8c8ca3fdef 100644 --- a/libavfilter/vsrc_color.c +++ b/libavfilter/vsrc_color.c @@ -57,7 +57,6 @@ typedef struct ColorContext { static av_cold int color_init(AVFilterContext *ctx) { ColorContext *color = ctx->priv; - AVRational frame_rate_q; int ret; if (av_parse_video_size(&color->w, &color->h, color->size_str) < 0) { @@ -65,8 +64,7 @@ static av_cold int color_init(AVFilterContext *ctx) return AVERROR(EINVAL); } - if (av_parse_video_rate(&color->frame_rate, color->framerate_str) < 0 || - frame_rate_q.den <= 0 || frame_rate_q.num <= 0) { + if (av_parse_video_rate(&color->frame_rate, color->framerate_str) < 0) { av_log(ctx, AV_LOG_ERROR, "Invalid frame rate: %s\n", color->framerate_str); return AVERROR(EINVAL); } |