You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavf/vaapi_deinterlace: return error if mode unsupported
Reviewed-by: Mark Thompson <sw@jkqxz.net> Signed-off-by: Fuwei Tang <fuweix.tang@intel.com> Signed-off-by: Zhong Li <zhong.li@intel.com>
This commit is contained in:
@@ -113,6 +113,7 @@ static int deint_vaapi_build_filter_params(AVFilterContext *avctx)
|
|||||||
av_log(avctx, AV_LOG_ERROR, "Deinterlacing mode %d (%s) is "
|
av_log(avctx, AV_LOG_ERROR, "Deinterlacing mode %d (%s) is "
|
||||||
"not supported.\n", ctx->mode,
|
"not supported.\n", ctx->mode,
|
||||||
deint_vaapi_mode_name(ctx->mode));
|
deint_vaapi_mode_name(ctx->mode));
|
||||||
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user