[FFmpeg-devel] [PATCH] avcodec/yuv4enc: do not read past end of input in case of odd height

Tomas Härdin git at haerdin.se
Wed Sep 6 09:16:12 EEST 2023


ons 2023-09-06 klockan 02:35 +0200 skrev Paul B Mahol:
> +    if (avctx->height & 1) {
> +        for (j = 0; j < avctx->width + 1 >> 1; j++) {

Don't we usually wrap shifted expressions in parentheses? I know >> is
lower presedence than + (a wtf in itself tbh) but I seem to recall
parens being the norm in much of the codebase.

/Tomas


More information about the ffmpeg-devel mailing list