Mercurial > libavcodec.hg
diff imgresample.c @ 3516:f60df50f50aa libavcodec
Fix a corner case in sws emulation
author | lucabe |
---|---|
date | Tue, 25 Jul 2006 15:23:44 +0000 |
parents | ad3d12d04645 |
children | 19c437d6aba5 |
line wrap: on
line diff
--- 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: