[Libav-user] What should I do when avcodec_decode_audio4 fails?

Nicolas George george at nsup.org
Mon May 15 13:00:28 EEST 2017


Le sextidi 26 floréal, an CCXXV, YIRAN LI a écrit :
> It's okay for me to add silence to makeup the decode failure but how can I
> know how many silent samples to insert?

If your frames come from a decent format, then the packets have a
timestamp.

Regards,

-- 
  Nicolas George


More information about the Libav-user mailing list