From dab588a4a255c7a30ef84ecacc92fe8815e402ee Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 2 Nov 2019 21:37:52 +0100 Subject: [PATCH] vd_lavc: signal packet consumed in drop-all case This is just a very special code path. This probably got stuck, now that the previous commit returned the EAGAIN properly. Untested. --- 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 dd80603433..42b7b959cb 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -977,7 +977,7 @@ static int do_send_packet(struct mp_filter *vd, struct demux_packet *pkt) return AVERROR_UNKNOWN; if (avctx->skip_frame == AVDISCARD_ALL) - return AVERROR(EAGAIN); + return 0; AVPacket avpkt; mp_set_av_packet(&avpkt, pkt, &ctx->codec_timebase);