ffmpeg plugin: fix passing the wrong alignment, fixes some older .avi files being distorted.

This commit is contained in:
Marco Cawthorne 2023-06-08 22:09:58 -07:00
parent 7604e8e655
commit 7e39cdd689
Signed by: eukara
GPG key ID: CE2032F0A2882A22

View file

@ -70,7 +70,7 @@ static qboolean AVDec_SetSize (void *vctx, int width, int height)
if (width == ctx->width && height == ctx->height && ctx->pScaleCtx) if (width == ctx->width && height == ctx->height && ctx->pScaleCtx)
return true; 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 //update the scale context as required
//clear the old stuff out //clear the old stuff out