[FFmpeg-cvslog] r17512 - trunk/ffmpeg.c

pross subversion
Sun Feb 22 01:58:52 CET 2009


Author: pross
Date: Sun Feb 22 01:58:51 2009
New Revision: 17512

Log:
Increase ffmpeg intermediate conversion buffer size to accomodate PPM/PNM header.

Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	Sun Feb 22 01:56:55 2009	(r17511)
+++ trunk/ffmpeg.c	Sun Feb 22 01:58:51 2009	(r17512)
@@ -1897,7 +1897,7 @@ static int av_encode(AVFormatContext **o
         }
         if(codec->codec_type == CODEC_TYPE_VIDEO){
             int size= codec->width * codec->height;
-            bit_buffer_size= FFMAX(bit_buffer_size, 4*size);
+            bit_buffer_size= FFMAX(bit_buffer_size, 4*size + 200);
         }
     }
 




More information about the ffmpeg-cvslog mailing list