vd_lavc: allow process_image() to return NULL

In case of errors or whatever.
This commit is contained in:
wm4 2016-04-25 11:30:07 +02:00
parent 021cb2c387
commit 85416bc36a
1 changed files with 1 additions and 1 deletions

View File

@ -637,7 +637,7 @@ static struct mp_image *read_output(struct dec_video *vd)
if (ctx->hwdec && ctx->hwdec->process_image)
res = ctx->hwdec->process_image(ctx, res);
return mp_img_swap_to_native(res);
return res ? mp_img_swap_to_native(res) : NULL;
}
static void decode(struct dec_video *vd, struct demux_packet *packet,