mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00: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:
@@ -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;
|
vd_ffmpeg_ctx *ctx = vd->priv;
|
||||||
AVCodecContext *avctx = ctx->avctx;
|
AVCodecContext *avctx = ctx->avctx;
|
||||||
|
|||||||
Reference in New Issue
Block a user