From: Michael Niedermayer Date: Thu, 22 Mar 2012 03:47:03 +0000 (+0100) Subject: doc/examples/decoding_encoding: make the buffer bigger. X-Git-Tag: android-x86-4.4-r1~12944 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=eb9841297a513cdaf405deecb13daff7501e57a6;p=android-x86%2Fexternal-ffmpeg.git doc/examples/decoding_encoding: make the buffer bigger. This should be converted to the new API Signed-off-by: Michael Niedermayer --- diff --git a/doc/examples/decoding_encoding.c b/doc/examples/decoding_encoding.c index 255be706a5..4b87e2d3a3 100644 --- a/doc/examples/decoding_encoding.c +++ b/doc/examples/decoding_encoding.c @@ -255,7 +255,7 @@ static void video_encode_example(const char *filename, int codec_id) } /* alloc image and output buffer */ - outbuf_size = 100000; + outbuf_size = 100000 + 12*c->width*c->height; outbuf = malloc(outbuf_size); /* the image can be allocated by any means and av_image_alloc() is