diff options
-rw-r--r-- | video/decode/vd_lavc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index 0bbe84c31b..8217c8b0d7 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -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, |