[MPlayer-dev-eng] [PATCH] ad_spdif.c: Flush output buffer after processing frame, fixes audio stutter

Jan Andres jandres at gmx.net
Sat Jun 28 22:11:38 CEST 2014


On Sat, Jun 28, 2014 at 09:59:37PM +0200, Reimar Döffinger wrote:
> On Sat, Jun 28, 2014 at 08:08:37PM +0200, Jan Andres wrote:
> > @@ -265,7 +265,7 @@
> >              sh->pts       = pts;
> >              sh->pts_bytes = 0;
> >          }
> > -        ret = lavf_ctx->oformat->write_packet(lavf_ctx, &pkt);
> > +        ret = av_write_frame(lavf_ctx, &pkt);
> 
> This part is obviously correct regardless, so I committed it.
> Thanks for spotting that.
> As mentioned I wouldn't expect it to fix things on its own though?

Yes it does, maybe I wasn't clear enough about that in my last email.
Both of the "flush_packets" flags in lavf are on by default, so the
above change is indeed all that's needed to fix the issue for me.

-- 
Jan Andres <jandres at gmx.net>


More information about the MPlayer-dev-eng mailing list