# HG changeset patch # User lucabe # Date 1153841024 0 # Node ID f60df50f50aa442de2af2a1a8c1e0c09d0236149 # Parent 20938be7b67b81bdb5bfc82c64f3ab15393ccac9 Fix a corner case in sws emulation diff -r 20938be7b67b -r f60df50f50aa imgresample.c --- a/imgresample.c Mon Jul 24 04:24:53 2006 +0000 +++ b/imgresample.c Tue Jul 25 15:23:44 2006 +0000 @@ -756,6 +756,9 @@ res = -1; 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: