From: Josh Coalson Date: Wed, 5 Jun 2002 05:54:23 +0000 (+0000) Subject: contents moved into metadata interface X-Git-Tag: 1.2.0~1857 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=40f037108afecce62d7eed1bcdf197318920f2a3;p=platform%2Fupstream%2Fflac.git contents moved into metadata interface --- diff --git a/include/FLAC/seek_table.h b/include/FLAC/seek_table.h deleted file mode 100644 index 01f0593..0000000 --- a/include/FLAC/seek_table.h +++ /dev/null @@ -1,36 +0,0 @@ -/* libFLAC - Free Lossless Audio Codec library - * Copyright (C) 2001,2002 Josh Coalson - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Library General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library General Public License for more details. - * - * You should have received a copy of the GNU Library General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - */ - -#ifndef FLAC__SEEK_TABLE_H -#define FLAC__SEEK_TABLE_H - -#include "format.h" - -#ifdef __cplusplus -extern "C" { -#endif - - -FLAC__bool FLAC__seek_table_is_valid(const FLAC__StreamMetaData_SeekTable *seek_table); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/libFLAC/seek_table.c b/src/libFLAC/seek_table.c deleted file mode 100644 index a7b694b..0000000 --- a/src/libFLAC/seek_table.c +++ /dev/null @@ -1,40 +0,0 @@ -/* libFLAC - Free Lossless Audio Codec library - * Copyright (C) 2001,2002 Josh Coalson - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Library General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library General Public License for more details. - * - * You should have received a copy of the GNU Library General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - */ - -#include "FLAC/seek_table.h" - -FLAC__bool FLAC__seek_table_is_valid(const FLAC__StreamMetaData_SeekTable *seek_table) -{ - unsigned i; - FLAC__uint64 last_sample_number = 0; - FLAC__bool got_last = false; - - for(i = 0; i < seek_table->num_points; i++) { - if(seek_table->points[i].sample_number != FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDER) { - if(got_last) { - if(seek_table->points[i].sample_number <= last_sample_number) - return false; - } - last_sample_number = seek_table->points[i].sample_number; - got_last = true; - } - } - - return true; -}