From 86030e115bc22cdc19a6d46b42dbe63c417f3dc8 Mon Sep 17 00:00:00 2001 From: Mario Sergio Fujikawa Ferreira Date: Fri, 15 Dec 2006 01:28:36 +0000 Subject: o Fix: the reorder_block() zigzag behaves incorrectly in the (!ARCH_X86 && !ARCH_X86_64) case. The current code fails to take into account the effects of _dv_prepare_reorder_tables(), which changes the indexes contained in the reorder_88[] and reorder_248[] arrays. o Bump PORTREVISION PR: 94188 Submitted by: Brent Casavant --- multimedia/libdv/Makefile | 2 +- multimedia/libdv/files/patch-libdv__encode.c | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 multimedia/libdv/files/patch-libdv__encode.c (limited to 'multimedia/libdv') diff --git a/multimedia/libdv/Makefile b/multimedia/libdv/Makefile index 991f411dbfea..8d0e82611d45 100644 --- a/multimedia/libdv/Makefile +++ b/multimedia/libdv/Makefile @@ -7,7 +7,7 @@ PORTNAME= libdv PORTVERSION= 0.104 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= multimedia MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/multimedia/libdv/files/patch-libdv__encode.c b/multimedia/libdv/files/patch-libdv__encode.c new file mode 100644 index 000000000000..e3c47375d776 --- /dev/null +++ b/multimedia/libdv/files/patch-libdv__encode.c @@ -0,0 +1,12 @@ +--- libdv/encode.c.orig Thu Dec 14 23:24:41 2006 ++++ libdv/encode.c Thu Dec 14 23:25:20 2006 +@@ -513,8 +513,7 @@ + emms(); + #else + for (i = 0; i < 64; i++) { +- // *(unsigned short*) ((char*) zigzag + reorder[i])=bl->coeffs[i]; +- zigzag[reorder[i] - 1] = bl->coeffs[i]; ++ *(unsigned short*) ((char*) zigzag + reorder[i])=bl->coeffs[i]; + } + memcpy(bl->coeffs, zigzag, 64 * sizeof(dv_coeff_t)); + #endif -- cgit v1.2.3