mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-11 06:58:18 +00:00
Fix a corner case in sws emulation
Originally committed as revision 5827 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
07bf2af864
commit
2793096fe3
@ -756,6 +756,9 @@ int sws_scale(struct SwsContext *ctx, uint8_t* src[], int srcStride[],
|
|||||||
res = -1;
|
res = -1;
|
||||||
goto the_end;
|
goto the_end;
|
||||||
}
|
}
|
||||||
|
} else if (resampled_picture != &dst_pict) {
|
||||||
|
img_copy(&dst_pict, resampled_picture, current_pix_fmt,
|
||||||
|
ctx->resampling_ctx->owidth, ctx->resampling_ctx->oheight);
|
||||||
}
|
}
|
||||||
|
|
||||||
the_end:
|
the_end:
|
||||||
|
Loading…
Reference in New Issue
Block a user