mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-18 12:56:56 +00:00
vsrc_color: Drop unneeded variable
Bug-Id: CID 1339818
This commit is contained in:
parent
ca5f386e75
commit
7f57ea143c
@ -57,7 +57,6 @@ typedef struct ColorContext {
|
|||||||
static av_cold int color_init(AVFilterContext *ctx)
|
static av_cold int color_init(AVFilterContext *ctx)
|
||||||
{
|
{
|
||||||
ColorContext *color = ctx->priv;
|
ColorContext *color = ctx->priv;
|
||||||
AVRational frame_rate_q;
|
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (av_parse_video_size(&color->w, &color->h, color->size_str) < 0) {
|
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);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (av_parse_video_rate(&color->frame_rate, color->framerate_str) < 0 ||
|
if (av_parse_video_rate(&color->frame_rate, color->framerate_str) < 0) {
|
||||||
frame_rate_q.den <= 0 || frame_rate_q.num <= 0) {
|
|
||||||
av_log(ctx, AV_LOG_ERROR, "Invalid frame rate: %s\n", color->framerate_str);
|
av_log(ctx, AV_LOG_ERROR, "Invalid frame rate: %s\n", color->framerate_str);
|
||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user