[Libav-user] decode audio example broken

Jaka Bac jakabac at gmail.com
Wed Nov 21 22:13:03 EET 2018

On Wed, 21 Nov 2018 at 20:47, drwho <drwho at infidigm.net> wrote:

> Hello,
> The audio decoder example below fails to decode any file I've tried
> (mp3, opus, wav).....
> [mp2 @ 0x55d075c3d780] Header missing
> Error submitting the packet to the decoder
> https://libav.org/documentation/doxygen/master/decode__audio_8c_source.html
> Jon

The audio decoding example specifically uses the MP2 audio codec to decode
the audio.
It does this:
codec = avcodec_find_decoder(AV_CODEC_ID_MP2);

For more general example you can look at:

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20181121/a62ae438/attachment.html>

More information about the Libav-user mailing list