diff options
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/jpeg_enc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libvo/jpeg_enc.c b/libvo/jpeg_enc.c index 0fd89d8977..452c420e55 100644 --- a/libvo/jpeg_enc.c +++ b/libvo/jpeg_enc.c @@ -338,6 +338,9 @@ jpeg_enc_t *jpeg_enc_init(int w, int h, int y_psize, int y_rsize, return NULL; } + /* alloc bogus avctx to keep MPV_common_init from segfaulting */ + j->s->avctx = calloc(sizeof(*j->s->avctx), 1); + if (MPV_common_init(j->s) < 0) { free(j->s); free(j); |