This should be converted to the new API
Unified · Split
| @@ -255,7 +255,7 @@ static void video_encode_example(const char *filename, int codec_id) · 254 unmodified lines | |||
| 255 | } | 255 | } |
| 256 | 256 | ||
| 257 | /* alloc image and output buffer */ | 257 | /* alloc image and output buffer */ |
| 258 | outbuf_size = 100000; | 258 | outbuf_size = 100000 + 12*c->width*c->height; |
| 259 | outbuf = malloc(outbuf_size); | 259 | outbuf = malloc(outbuf_size); |
| 260 | 260 | ||
| 261 | /* the image can be allocated by any means and av_image_alloc() is | 261 | /* the image can be allocated by any means and av_image_alloc() is |