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

YIRAN LI mrfun.china at gmail.com
Mon May 15 09:25:29 EEST 2017


Hi there,


When running my program with an audio-broken file, at some
point avcodec_decode_audio4 returns < 0 which mean decode failure.

It's okay for me to add silence to makeup the decode failure but how can I
know how many silent samples to insert?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20170515/795d6b3d/attachment.html>


More information about the Libav-user mailing list