[Libav-user] What should I do when avcodec_decode_audio4 fails?
powerpan at qq.com
Mon May 15 10:12:05 EEST 2017
From: "YIRAN LI"<mrfun.china at gmail.com>
Date: 2017/5/15 14:31:58
To: "This list is about using libavcodec, libavformat, libavutil,libavdevice and libavfilter."<libav-user at ffmpeg.org>;
Subject: [Libav-user] What should I do when avcodec_decode_audio4 fails?
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user