summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-11-02 21:35:48 +0100
committerwm4 <wm4@nowhere>2019-11-02 21:35:48 +0100
commit203fc6fe4487faab680936661cc445b10ed02894 (patch)
treec8660dc1bebce6388991754c656284ced2784638
parent3ae9f671d4f563955ca8040ba6fa68fc5c684937 (diff)
downloadmpv-203fc6fe4487faab680936661cc445b10ed02894.tar.bz2
mpv-203fc6fe4487faab680936661cc445b10ed02894.tar.xz
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
-rw-r--r--video/decode/vd_lavc.c2
1 files changed, 1 insertions, 1 deletions
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;