mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +02:00
vf_hwmap: Add missing error code
This commit is contained in:
@@ -73,6 +73,7 @@ static int hwmap_config_output(AVFilterLink *outlink)
|
|||||||
type = av_hwdevice_find_type_by_name(ctx->derive_device_type);
|
type = av_hwdevice_find_type_by_name(ctx->derive_device_type);
|
||||||
if (type == AV_HWDEVICE_TYPE_NONE) {
|
if (type == AV_HWDEVICE_TYPE_NONE) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "Invalid device type.\n");
|
av_log(avctx, AV_LOG_ERROR, "Invalid device type.\n");
|
||||||
|
err = AVERROR(EINVAL);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user