changeset 3516:f60df50f50aa libavcodec

Fix a corner case in sws emulation
author lucabe
date Tue, 25 Jul 2006 15:23:44 +0000
parents 20938be7b67b
children 84c509024ee9
files imgresample.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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: