vaapi_encode_h265: Add missing error return

Fixes CID #1439657.
This commit is contained in:
Mark Thompson 2018-09-24 23:02:10 +01:00
parent 1215fbad96
commit 74b4134d2f
1 changed files with 1 additions and 0 deletions

View File

@ -293,6 +293,7 @@ static int vaapi_encode_h265_init_sequence_params(AVCodecContext *avctx)
} else {
av_log(avctx, AV_LOG_ERROR, "Chroma format of input pixel format "
"%s is not supported.\n", desc->name);
return AVERROR(EINVAL);
}
}
bit_depth = desc->comp[0].depth;