1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

Originally committed as revision 17512 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Peter Ross 2009-02-22 00:58:51 +00:00
parent 001821904e
commit befb5cac31

View File

@ -1897,7 +1897,7 @@ static int av_encode(AVFormatContext **output_files,
}
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);
}
}