mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-10-24 04:13:24 +00:00
doc/examples/decoding_encoding: make the buffer bigger.
This should be converted to the new API Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
109650b34b
commit
eb9841297a
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue