System: Debian bookworm amd64
Version: libchromaprint1 1.5.1-2+b1
When using libchromaprint1 via fpcalc, fpcalc sometimes reports the following error and returns rc = 3 when there doesn't seem to be anything wrong with the input file:
ERROR: Error decoding audio frame (End of file)
This causes picard to consider the fingerprint calculation to have failed.
mp3val and mp3diags report no problems with the source files that cause this error.
ffmpeg also reports no errors when directly decoding the same file, even with -loglevel debug.
This appears to be caused by fpcalc -> libchromaprint1 -> FFmpegAudioReader::Read() -> avcodec_receive_frame()
returning a negative value in some cases when reaching the end of the data stream.