Am Mi., 8. Mai 2019 um 12:08 Uhr schrieb Ruta Gadkari <[email protected]>:
> diff --git a/libavcodec/cuviddec.c b/libavcodec/cuviddec.c
> index d59d1faf9e..acee78cf2c 100644
> --- a/libavcodec/cuviddec.c
> +++ b/libavcodec/cuviddec.c
> @@ -805,6 +805,12 @@ static int cuvid_test_capabilities(AVCodecContext *avctx,
> return AVERROR(EINVAL);
> }
>
> + if ((probed_width * probed_height) / 256 > caps->nMaxMBCount) {
> + av_log(avctx, AV_LOG_ERROR, "Video macroblock count %d exceeds
> maximum of %d\n",
> + (int)(probed_width * probed_height) / 256, caps->nMaxMBCount);
Why is this cast necessary?
Carl Eugen
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".