<div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Wed, 21 Nov 2018 at 20:47, drwho <<a href="mailto:drwho@infidigm.net">drwho@infidigm.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
The audio decoder example below fails to decode any file I've tried <br>
(mp3, opus, wav).....<br>
<br>
[mp2 @ 0x55d075c3d780] Header missing<br>
Error submitting the packet to the decoder<br>
<br>
<a href="https://libav.org/documentation/doxygen/master/decode__audio_8c_source.html" rel="noreferrer" target="_blank">https://libav.org/documentation/doxygen/master/decode__audio_8c_source.html</a><br>
<br>
Jon<br><br></blockquote><div><br></div><div>Hello,</div><div><br></div><div>The audio decoding example specifically uses the MP2 audio codec to decode the audio.</div><div>It does this:</div>codec = avcodec_find_decoder(AV_CODEC_ID_MP2); </div><div class="gmail_quote"><br></div><div class="gmail_quote">For more general example you can look at:</div><div class="gmail_quote"><a href="https://www.ffmpeg.org/doxygen/trunk/demuxing_decoding_8c-example.html">https://www.ffmpeg.org/doxygen/trunk/demuxing_decoding_8c-example.html</a><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">Jaka</div><div class="gmail_quote"><br></div></div></div>