1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 01:52:19 +00:00

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

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,