Skip to content
Snippets Groups Projects
Commit eb984129 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

doc/examples/decoding_encoding: make the buffer bigger.


This should be converted to the new API

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 109650b3
No related branches found
No related tags found
No related merge requests found
...@@ -255,7 +255,7 @@ static void video_encode_example(const char *filename, int codec_id) ...@@ -255,7 +255,7 @@ static void video_encode_example(const char *filename, int codec_id)
} }
/* alloc image and output buffer */ /* alloc image and output buffer */
outbuf_size = 100000; outbuf_size = 100000 + 12*c->width*c->height;
outbuf = malloc(outbuf_size); outbuf = malloc(outbuf_size);
/* the image can be allocated by any means and av_image_alloc() is /* the image can be allocated by any means and av_image_alloc() is
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment