Hello community, here is the log from the commit of package libxmp for openSUSE:Factory checked in at 2013-05-03 09:17:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libxmp (Old) and /work/SRC/openSUSE:Factory/.libxmp.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libxmp" Changes: -------- --- /work/SRC/openSUSE:Factory/libxmp/libxmp.changes 2013-04-08 14:53:28.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.libxmp.new/libxmp.changes 2013-05-03 09:17:36.000000000 +0200 @@ -1,0 +2,16 @@ +Mon Apr 29 20:55:27 UTC 2013 - [email protected] + +- Update to new upstream release 4.1.0 +* This release adds a function to play fixed-size buffers to the + API, improves precision of the IT lowpass filter, and contains + bugfixes for simultaneous volume up and down, IT envelopes with + no envelope points, Amusic module loading, and MED pitch slides, + portamento, and pattern reading. Build issues were addressed for + Cygwin and MinGW, and a buffer overflow was fixed in the MASI + loader. (xref: bnc#816454, CVE-2013-1980) +- Update to new upstream release 4.1.1 +* Improved precision in portamento effects and implemented the XM + "set envelope position" effect. +- Add 0001-test-Fix-play_buffer-test.patch + +------------------------------------------------------------------- Old: ---- libxmp-4.0.4.tar.xz New: ---- 0001-test-Fix-play_buffer-test.patch libxmp-4.1.1.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libxmp.spec ++++++ --- /var/tmp/diff_new_pack.HuXgkx/_old 2013-05-03 09:17:38.000000000 +0200 +++ /var/tmp/diff_new_pack.HuXgkx/_new 2013-05-03 09:17:38.000000000 +0200 @@ -21,14 +21,15 @@ Summary: Module Player library for MOD, S3M, IT and others License: LGPL-2.1 Group: Development/Libraries/C and C++ -Version: 4.0.4 +Version: 4.1.1 Release: 0 Url: http://xmp.sf.net/ #Freecode-URL: http://freecode.com/projects/libxmp/ -#DL-URL: http://downloads.sf.net/xmp/libxmp-4.0.4.tar.gz +#DL-URL: http://downloads.sf.net/xmp/libxmp-4.1.1.tar.gz #Git-Clone: git://git.code.sf.net/p/xmp/code Source: %name-%version.tar.xz +Patch1: 0001-test-Fix-play_buffer-test.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: pkgconfig BuildRequires: xz @@ -65,6 +66,7 @@ %prep %setup -q +%patch -P 1 -p1 %build %configure ++++++ 0001-test-Fix-play_buffer-test.patch ++++++ >From e98a2d634454427044e035f4b4ab88c485af8a98 Mon Sep 17 00:00:00 2001 From: Claudio Matsuoka <[email protected]> Date: Mon, 29 Apr 2013 20:21:30 -0300 Subject: [PATCH] [test] Fix play_buffer test Initialize buffer and handle buffer conversion in big-endian systems. Signed-off-by: Claudio Matsuoka <[email protected]> --- test/test.h | 1 + test/test_api_play_buffer.c | 6 +++++- test/test_depack_it_sample_16bit.c | 14 -------------- test/util.c | 14 ++++++++++++++ 4 files changed, 20 insertions(+), 15 deletions(-) diff --git a/test/test.h b/test/test.h index f36ae6a..b7d81a9 100644 --- a/test/test.h +++ b/test/test.h @@ -30,6 +30,7 @@ int play_frame(struct context_data *); int compare_md5(unsigned char *, char *); int check_md5(char *, char *); +void convert_endian(unsigned char *, int); void create_simple_module(struct context_data *, int, int); void set_order(struct context_data *, int, int); void set_instrument_volume(struct context_data *, int, int, int); diff --git a/test/test_api_play_buffer.c b/test/test_api_play_buffer.c index bd49adc..d2b8603 100644 --- a/test/test_api_play_buffer.c +++ b/test/test_api_play_buffer.c @@ -1,4 +1,5 @@ #include "test.h" +#include "../src/loaders/loader.h" static int vals[] = { 11, 117, 313, 701, 1111, 3999, 7071, 10037, -1 }; static char buffer[20000]; @@ -13,10 +14,13 @@ TEST(test_api_play_buffer) char *ref_buffer; f = fopen("data/pcm_buffer.raw", "rb"); - ref_buffer = malloc(REFBUF_SIZE); + ref_buffer = calloc(1, REFBUF_SIZE); fail_unless(ref_buffer != NULL, "buffer allocation error"); fread(ref_buffer, 1, REFBUF_SIZE, f); + if (is_big_endian()) { + convert_endian((unsigned char *)ref_buffer, REFBUF_SIZE / 2); + } opaque = xmp_create_context(); diff --git a/test/test_depack_it_sample_16bit.c b/test/test_depack_it_sample_16bit.c index a2f6107..b839c96 100644 --- a/test/test_depack_it_sample_16bit.c +++ b/test/test_depack_it_sample_16bit.c @@ -3,20 +3,6 @@ int itsex_decompress16(FILE *module, void *dst, int len, char it215); -/* Convert little-endian 16 bit samples to big-endian */ -static void convert_endian(uint8 *p, int l) -{ - uint8 b; - int i; - - for (i = 0; i < l; i++) { - b = p[0]; - p[0] = p[1]; - p[1] = b; - p += 2; - } -} - TEST(test_depack_it_sample_16bit) { diff --git a/test/util.c b/test/util.c index a5e14a5..5bc5e39 100644 --- a/test/util.c +++ b/test/util.c @@ -63,3 +63,17 @@ int map_channel(struct player_data *p, int chn) return voc; } +/* Convert little-endian 16 bit samples to big-endian */ +void convert_endian(unsigned char *p, int l) +{ + uint8 b; + int i; + + for (i = 0; i < l; i++) { + b = p[0]; + p[0] = p[1]; + p[1] = b; + p += 2; + } +} + -- 1.8.1.4 ++++++ libxmp-4.0.4.tar.xz -> libxmp-4.1.1.tar.xz ++++++ ++++ 28104 lines of diff (skipped) -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
