/*
- * Copyright (C) 2011 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2011 Andre Noll <maan@tuebingen.mpg.de>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
/** \file flac_afh.c Audio format handler for flac files. */
#include <regex.h>
-#include <stdbool.h>
#include <FLAC/stream_decoder.h>
#include <FLAC/metadata.h>
static int meta_eof_cb(FLAC__IOHandle handle)
{
struct private_flac_afh_data *pfad = handle;
- return pfad->fpos == pfad->map_bytes - 1;
+ return pfad->fpos == pfad->map_bytes;
}
static int meta_close_cb(FLAC__IOHandle __a_unused handle)
return FLAC__STREAM_DECODER_TELL_STATUS_OK;
}
-/* libflac insits on this callback being present. */
+/* libflac insists on this callback being present. */
static FLAC__StreamDecoderWriteStatus write_cb(
__a_unused const FLAC__StreamDecoder *decoder,
__a_unused const FLAC__Frame *frame,