[FFmpeg-devel] FLAC decoder and FF_INPUT_BUFFER_PADDING_SIZE

Ludmila Glinskih lglinskih at gmail.com
Fri Apr 10 03:27:54 CEST 2015


I tried to decode a FLAC file using the API and I noticed a strange
thing: as I read in the documentation I should give
avcodec_decode_audio4 a buffer with extra FF_INPUT_BUFFER_PADDING_SIZE
bytes. If I don't initialize the extra bytes of the buffer, I get an
error from valgrind: "Conditional jump or move depends on
uninitialized value(s)". I understand that it might happen if input is
corrupted. But is there another explanation? Or is my input is really

Kind regards,
Ludmila Glinskih

More information about the ffmpeg-devel mailing list