[flac-dev] Commonly getting FLAC__STREAM_ENCODER_VERIFY_MISMATCH_IN_AUDIO_DATA on valid audio

Erik de Castro Lopo mle+la at mega-nerd.com
Fri Feb 8 14:40:51 PST 2013

Collin wrote:

> It turns out it was an error on my part; sorry for the trouble. I misunderstood
> the format libflac was expecting my samples in. I found the wording in the
> documentation very confusing.
> My audio file has 2 channels and 16-bit samples, so I have to pull out each
> individual sample, push it into a FLAC__int32, and fix endian-ness before I can
> pass it to libflac.
> The documentation made me think that libflac just wanted me to shove my 2-byte
> sample into a FLAC__int32. I wasn't aware that it wanted me to extend the sign,
> as well.

At some stage it might make sense for us to make the FLAC API a little
more user/programmer friendly. Something to match libsndfile's ease of

Erik de Castro Lopo

More information about the flac-dev mailing list