[FFmpeg-cvslog] r12187 - trunk/libavcodec/utils.c

vitor subversion
Sun Feb 24 08:47:03 CET 2008


Author: vitor
Date: Sun Feb 24 08:47:02 2008
New Revision: 12187

Log:
Fix bug I introduced in r11962.
Thanks to Uoti Urpala for spotting it and proposing the 
fix.


Modified:
   trunk/libavcodec/utils.c

Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c	(original)
+++ trunk/libavcodec/utils.c	Sun Feb 24 08:47:02 2008
@@ -295,7 +295,7 @@ int avcodec_default_get_buffer(AVCodecCo
 
         for (i=0; i<3 && picture.data[i+1]; i++)
             size[i] = picture.data[i+1] - picture.data[i];
-        size[i] = tmpsize - size[i];
+        size[i] = tmpsize - (picture.data[i] - picture.data[0]);
 
         buf->last_pic_num= -256*256*256*64;
         memset(buf->base, 0, sizeof(buf->base));




More information about the ffmpeg-cvslog mailing list