mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 12:02:23 +02:00
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
This commit is contained in:
parent
3ae9f671d4
commit
203fc6fe44
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user