On Wed, 21 Nov 2018 at 20:47, drwho <[email protected]> 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
>
>
Hello,

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:
https://www.ffmpeg.org/doxygen/trunk/demuxing_decoding_8c-example.html

Jaka
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to