[Ffmpeg-cvslog] r5827 - trunk/libavcodec/imgresample.c

lucabe subversion
Tue Jul 25 17:23:44 CEST 2006


Author: lucabe
Date: Tue Jul 25 17:23:44 2006
New Revision: 5827

Modified:
   trunk/libavcodec/imgresample.c

Log:
Fix a corner case in sws emulation


Modified: trunk/libavcodec/imgresample.c
==============================================================================
--- trunk/libavcodec/imgresample.c	(original)
+++ trunk/libavcodec/imgresample.c	Tue Jul 25 17:23:44 2006
@@ -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:




More information about the ffmpeg-cvslog mailing list