diff options
author | wm4 <wm4@nowhere> | 2019-11-02 21:35:48 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-11-02 21:35:48 +0100 |
commit | 203fc6fe4487faab680936661cc445b10ed02894 (patch) | |
tree | c8660dc1bebce6388991754c656284ced2784638 /video/decode | |
parent | 3ae9f671d4f563955ca8040ba6fa68fc5c684937 (diff) | |
download | mpv-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
Diffstat (limited to 'video/decode')
-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 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; |