mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-29 07:02:12 +00:00
ffmpeg plugin: fix passing the wrong alignment, fixes some older .avi files being distorted.
This commit is contained in:
parent
7604e8e655
commit
7e39cdd689
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue