History

doc/examples/decoding_encoding: make the buffer bigger.

This should be converted to the new API

Michael Niedermayer committed 14 years ago

Commit eb984121 parent 109650b1 file · +1 −1Browse files

Unified · Split

doc/examples/decoding_encoding.c+1−1
@@ -255,7 +255,7 @@ static void video_encode_example(const char *filename, int codec_id) · 254 unmodified lines
255255 }
256256
257257 /* alloc image and output buffer */
258− outbuf_size = 100000;
258+ outbuf_size = 100000 + 12*c->width*c->height;
259259 outbuf = malloc(outbuf_size);
260260
261261 /* the image can be allocated by any means and av_image_alloc() is

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t