X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=flac_afh.c;h=45879c2f365451c96a1c3633320c7f5ac5b665c6;hp=77735a086f390c8b03690f1f33ea064295c3f960;hb=3a6b996d8b39fdc067df352d1eee757ef2a8f49b;hpb=9de1287d67c9562e9140c6dc7deb0c01c4e10cc0 diff --git a/flac_afh.c b/flac_afh.c index 77735a08..45879c2f 100644 --- a/flac_afh.c +++ b/flac_afh.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011-2012 Andre Noll + * Copyright (C) 2011-2014 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -80,7 +80,7 @@ static FLAC__int64 meta_tell_cb(FLAC__IOHandle handle) 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) @@ -215,7 +215,7 @@ static FLAC__StreamDecoderTellStatus tell_cb( 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,