X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=flac_afh.c;h=fd7bd24a20f9a621240f926ad1511592328cb18d;hp=b3a0f6e7abab9e6529bfda805f454e737485d30d;hb=36ec2a43a7d9c085f16544e282a439cdbaec1e00;hpb=f48194d3ff2a3983f21cab1553fbe29529f2e790 diff --git a/flac_afh.c b/flac_afh.c index b3a0f6e7..fd7bd24a 100644 --- a/flac_afh.c +++ b/flac_afh.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011 Andre Noll + * Copyright (C) 2011-2014 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -7,7 +7,6 @@ /** \file flac_afh.c Audio format handler for flac files. */ #include -#include #include #include @@ -81,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)