New package: id3lib-3.8.3

This commit is contained in:
Christian Neukirchen 2014-07-06 19:50:53 +02:00
parent ff32637230
commit 5d411d5e70
8 changed files with 133 additions and 0 deletions

View file

@ -1666,3 +1666,5 @@ libxmlrpc_client.so.3 xmlrpc-c-1.25.28_1
libtelepathy-farstream.so.3 telepathy-farstream-0.6.0_6 libtelepathy-farstream.so.3 telepathy-farstream-0.6.0_6
libtidy-0.99.so.0 tidy-1.46_2 libtidy-0.99.so.0 tidy-1.46_2
libnetpbm.so.11 libnetpbm-10.66.03_2 libnetpbm.so.11 libnetpbm-10.66.03_2
libid3.so id3lib-3.8.3_1
libid3-3.8.so.3 id3lib-3.8.3_1

1
srcpkgs/id3lib-devel Symbolic link
View file

@ -0,0 +1 @@
id3lib

View file

@ -0,0 +1,21 @@
--- include/id3/id3lib_strings.h
+++ include/id3/id3lib_strings.h
@@ -30,6 +30,7 @@
#define _ID3LIB_STRINGS_H_
#include <string>
+#include <cstring>
#if (defined(__GNUC__) && (__GNUC__ >= 3) || (defined(_MSC_VER) && _MSC_VER > 1000))
namespace std
--- include/id3/writers.h
+++ include/id3/writers.h
@@ -30,7 +30,7 @@
#include "id3/writer.h"
#include "id3/id3lib_streams.h"
-//#include <string.h>
+#include <cstring>
class ID3_CPP_EXPORT ID3_OStreamWriter : public ID3_Writer
{

View file

@ -0,0 +1,38 @@
Patch from 'Spoon' to fix issues with writing certain unicode characters
--- ChangeLog
+++ ChangeLog
@@ -1,3 +1,8 @@
+2006-02-17 Jerome Couderc
+
+ * Patch from Spoon to fix UTF-16 writing bug
+ http://sourceforge.net/tracker/index.php?func=detail&aid=1016290&group_id=979&atid=300979
+
2003-03-02 Sunday 17:38 Thijmen Klok <thijmen@id3lib.org>
* THANKS (1.20): added more people
--- src/io_helpers.cpp
+++ src/io_helpers.cpp
@@ -363,11 +363,22 @@
// Write the BOM: 0xFEFF
unicode_t BOM = 0xFEFF;
writer.writeChars((const unsigned char*) &BOM, 2);
+ // Patch from Spoon : 2004-08-25 14:17
+ // http://sourceforge.net/tracker/index.php?func=detail&aid=1016290&group_id=979&atid=300979
+ // Wrong code
+ //for (size_t i = 0; i < size; i += 2)
+ //{
+ // unicode_t ch = (data[i] << 8) | data[i+1];
+ // writer.writeChars((const unsigned char*) &ch, 2);
+ //}
+ // Right code
+ unsigned char *pdata = (unsigned char *) data.c_str();
for (size_t i = 0; i < size; i += 2)
{
- unicode_t ch = (data[i] << 8) | data[i+1];
+ unicode_t ch = (pdata[i] << 8) | pdata[i+1];
writer.writeChars((const unsigned char*) &ch, 2);
}
+ // End patch
}
return writer.getCur() - beg;
}

View file

@ -0,0 +1,10 @@
--- configure.in
+++ configure.in
@@ -227,7 +227,6 @@
)
AC_CHECK_HEADERS( \
string \
- iomanip.h \
,,AC_MSG_ERROR([Missing a vital header file for id3lib])
)

View file

@ -0,0 +1,12 @@
This patch adds a check for a null pointer
--- src/header_tag.cpp
+++ src/header_tag.cpp
@@ -54,7 +54,7 @@
{
size_t bytesUsed = ID3_TagHeader::SIZE;
- if (_info->is_extended)
+ if (_info && _info->is_extended)
{
bytesUsed += _info->extended_bytes;
}

View file

@ -0,0 +1,19 @@
Description: Fix crashes when reading VBR MP3 file.
Bug-Ubuntu: https://launchpad.net/bugs/444466
Origin: upstream, http://sourceforge.net/tracker/?func=detail&aid=937707&group_id=979&atid=300979
Forwarded: yes
Author: Urs Fleisch
Index: id3lib3.8.3-3.8.3/src/mp3_parse.cpp
===================================================================
--- src/mp3_parse.cpp 2009-10-06 23:12:10.381250132 +0200
+++ src/mp3_parse.cpp 2009-10-06 23:14:09.545252591 +0200
@@ -465,7 +465,7 @@
// from http://www.xingtech.com/developer/mp3/
const size_t VBR_HEADER_MIN_SIZE = 8; // "xing" + flags are fixed
- const size_t VBR_HEADER_MAX_SIZE = 116; // frames, bytes, toc and scale are optional
+ const size_t VBR_HEADER_MAX_SIZE = 120; // frames, bytes, toc and scale are optional
if (mp3size >= vbr_header_offest + VBR_HEADER_MIN_SIZE)
{

30
srcpkgs/id3lib/template Normal file
View file

@ -0,0 +1,30 @@
# Template file for 'id3lib'
pkgname=id3lib
version=3.8.3
revision=1
build_style=gnu-configure
hostmakedepends="libtool automake autoconf"
makedepends="zlib-devel"
depends=""
short_desc="Library for reading, writing, and manipulating ID3v1 and ID3v2 tags"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="LGPL-3"
homepage="http://id3lib.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
checksum=2749cc3c0cd7280b299518b1ddf5a5bcfe2d1100614519b68702230e26c7d079
pre_configure() {
libtoolize -fc
aclocal
autoconf
automake --add-missing --copy
}
id3lib-devel_package() {
depends="$makedepends ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
}
}