mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -04:00
Fix some mistakes on merging.
This commit is contained in:
parent
d36550f96d
commit
afa137e1c1
@ -220,7 +220,7 @@ void ID3v1::Tag::setStringHandler(const TagLib::StringHandler *handler)
|
||||
// protected methods
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void ID3v1::Tag::read(File *file, long tagOffset)
|
||||
void ID3v1::Tag::read(File *file, long long tagOffset)
|
||||
{
|
||||
if(file && file->isValid()) {
|
||||
file->seek(tagOffset);
|
||||
|
@ -140,7 +140,7 @@ namespace TagLib {
|
||||
/*!
|
||||
* Reads from the file specified in the constructor.
|
||||
*/
|
||||
void read(File *file, long tagOffset);
|
||||
void read(File *file, long long tagOffset);
|
||||
/*!
|
||||
* Pareses the body of the tag in \a data.
|
||||
*/
|
||||
|
@ -840,7 +840,7 @@ void ID3v2::Tag::setLatin1StringHandler(const TagLib::StringHandler *handler)
|
||||
// protected members
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void ID3v2::Tag::read(TagLib::File *file, long offset)
|
||||
void ID3v2::Tag::read(TagLib::File *file, long long offset)
|
||||
{
|
||||
if(!file)
|
||||
return;
|
||||
|
@ -356,7 +356,7 @@ namespace TagLib {
|
||||
* the Header, the body of the tag (which contains the ExtendedHeader and
|
||||
* frames) and Footer.
|
||||
*/
|
||||
void read(TagLib::File *file, long offset);
|
||||
void read(TagLib::File *file, long long offset);
|
||||
|
||||
/*!
|
||||
* This is called by read to parse the body of the tag. It determines if an
|
||||
|
@ -70,20 +70,6 @@ RIFF::File::~File()
|
||||
delete d;
|
||||
}
|
||||
|
||||
bool RIFF::File::isValidChunkName(const ByteVector &name) // static
|
||||
{
|
||||
if(name.size() != 4)
|
||||
return false;
|
||||
|
||||
for(ByteVector::ConstIterator it = name.begin(); it != name.end(); ++it) {
|
||||
const uchar c = static_cast<uchar>(*it);
|
||||
if(c < 32 || 127 < c)
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// protected members
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -51,13 +51,7 @@ namespace TagLib {
|
||||
*/
|
||||
virtual ~File();
|
||||
|
||||
/*!
|
||||
* Returns whether or not \a name is valid as a chunk name.
|
||||
*/
|
||||
static bool isValidChunkName(const ByteVector &name);
|
||||
|
||||
protected:
|
||||
|
||||
File(FileName file, ByteOrder endianness);
|
||||
File(IOStream *stream, ByteOrder endianness);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user