From 203fc6fe4487faab680936661cc445b10ed02894 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 2 Nov 2019 21:35:48 +0100 Subject: vd_lavc: change incorrect bool return type to int Forgotten in commit 5d5fdb7. This failed to return the error code properly. In particular, if the decoder rejected the packet, this was not properly detected. Normally, this mattered only in specific cases. Fixes: #7115 --- video/decode/vd_lavc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index e48ddcc26f..dd80603433 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -968,7 +968,7 @@ static void handle_err(struct mp_filter *vd) } } -static bool do_send_packet(struct mp_filter *vd, struct demux_packet *pkt) +static int do_send_packet(struct mp_filter *vd, struct demux_packet *pkt) { vd_ffmpeg_ctx *ctx = vd->priv; AVCodecContext *avctx = ctx->avctx; -- cgit v1.2.3