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:
parent
021cb2c387
commit
85416bc36a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user