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.
This commit is contained in:
wm4 2019-11-02 21:37:52 +01:00
parent 203fc6fe44
commit dab588a4a2
1 changed files with 1 additions and 1 deletions

View File

@ -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);