On 22/04/14 19:49, Ben Ockmore wrote:
> Based on a suspicion I had, I looked into ways of removing the metadata
> from the FLAC file. I've found that the problem seems to be occur when the
> FLAC file contains a picture in one of its metadata blocks.

Ah, then it is quite simple. You are getting the cover picture as frame
and you aren't neither telling libavformat you want just the audio
stream nor you are checking that you are getting audio from the stream
you picked.

Try to just check for the stream index or set the ->discard field to
AVDISCARD_ALL to all the other streams.

lu
_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api

Reply via email to