From 7e39cdd689159861a15d159418ff05e254c9e228 Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Thu, 8 Jun 2023 22:09:58 -0700 Subject: [PATCH] ffmpeg plugin: fix passing the wrong alignment, fixes some older .avi files being distorted. --- plugins/avplug/avdecode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/avplug/avdecode.c b/plugins/avplug/avdecode.c index dc45fb980..c5c9eb3dd 100644 --- a/plugins/avplug/avdecode.c +++ b/plugins/avplug/avdecode.c @@ -70,7 +70,7 @@ static qboolean AVDec_SetSize (void *vctx, int width, int height) if (width == ctx->width && height == ctx->height && ctx->pScaleCtx) return true; - if (av_image_alloc(rgb_data, rgb_linesize, width, height, AV_PIX_FMT_BGRA, 16) >= 0) + if (av_image_alloc(rgb_data, rgb_linesize, width, height, AV_PIX_FMT_BGRA, 1) >= 0) { //update the scale context as required //clear the old stuff out