From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Jun 13 05:18:42 2009 Return-Path: Delivered-To: freebsd-ports-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A0315106564A for ; Sat, 13 Jun 2009 05:18:42 +0000 (UTC) (envelope-from Fluffy@fluffy.khv.ru) Received: from ns.ael.RU (ns.ael.ru [62.76.207.226]) by mx1.freebsd.org (Postfix) with ESMTP id AD7048FC1B for ; Sat, 13 Jun 2009 05:18:41 +0000 (UTC) (envelope-from Fluffy@fluffy.khv.ru) Received: from Fluffy.Khv.RU ([192.168.101.222]) by ns.ael.RU (8.14.3/8.14.3/Fluffy/5.3) with ESMTP id n5D57MDK091354; Sat, 13 Jun 2009 16:07:38 +1100 (VLAST) (envelope-from Fluffy@fluffy.khv.ru) Received: from fluffy.khv.ru (localhost [127.0.0.1]) by Fluffy.Khv.RU (8.14.3/8.14.3/Fluffy/5.4.1) with ESMTP id n5D578aH091644; Sat, 13 Jun 2009 16:07:08 +1100 (VLAST) (envelope-from Fluffy@fluffy.khv.ru) From: Dima Panov Organization: Twilight Zone To: freebsd-ports-bugs@freebsd.org Date: Sat, 13 Jun 2009 16:07:04 +1100 User-Agent: KMail/1.11.90 (FreeBSD/8.0-800097-CURRENT; KDE/4.2.85; i386; ; ) References: <200905172250.n4HMoXM1040813@www.freebsd.org> In-Reply-To: <200905172250.n4HMoXM1040813@www.freebsd.org> X-Face: 0@4\7E\1@^")_h0MTxV2Z#bWo~ni{%d|UX`wd/|!A(('v)"Ca5\s=!+, ]~m!iHnuVR3]&Q 9X##/4I^QwrTnqhqQsk!Ut]4gn60yAn6vcZt?7}u1M|(3$o3(?9+Oaszo\xq&Am#<`~E{0 4,Y]-BbQW5WrGc'HC[7As:4g\V0Lk#tiF!Du1N; Hxf1>4%V; :t4@; \F-b.*bKpC@E,+h4& 1; Ui0}PwyBs!Ku[|Lhh(.&u,e>(UdPzP\7s)RaY}Z2$>Z]O1Lw&X|NbR]O^}>i^cS[vQy< iL#U;k67<%JR MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <200906131607.06823.Fluffy@fluffy.khv.ru> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (ns.ael.RU [192.168.1.1]); Sat, 13 Jun 2009 16:07:53 +1100 (VLAST) X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.2 (Fluffy.Khv.RU [127.0.0.1]); Sat, 13 Jun 2009 16:07:09 +1100 (VLAST) X-Spam-Status: No, score=-4.4 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on ns.ael.RU Cc: Alberto Villa Subject: Re: ports/134632: [patch] Update port: multimedia/ffmpeg 2009-05-15 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jun 2009 05:18:42 -0000 On Monday 18 May 2009 09:50:33 Alberto Villa wrote: > >Number: 134632 > >Category: ports > >Synopsis: [patch] Update port: multimedia/ffmpeg 2009-05-15 > >Arrival-Date: Sun May 17 23:00:07 UTC 2009 > >Originator: Alberto Villa > >Description: > > an update for the ffmpeg port multimedia/libquicktime is broken by new library. very dirty hack is: ========== --- plugins/ffmpeg/video.c.orig 2008-12-02 05:45:29.000000000 +1000 +++ plugins/ffmpeg/video.c 2009-06-13 16:00:18.000000000 +1100 @@ -102,7 +102,6 @@ colormodels[] = { { PIX_FMT_YUV420P, BC_YUV420P, 1 }, ///< Planar YUV 4:2:0 (1 Cr & Cb sample per 2x2 Y samples) - { PIX_FMT_YUV422, BC_YUV422, 1 }, { PIX_FMT_RGB24, BC_RGB888, 1 }, ///< Packed pixel, 3 bytes per pixel, RGBRGB... { PIX_FMT_BGR24, BC_BGR888, 1 }, ///< Packed pixel, 3 bytes per pixel, BGRBGR... { PIX_FMT_YUV422P, BC_YUV422P, 1 }, ///< Planar YUV 4:2:2 (1 Cr & Cb sample per 2x1 Y samples) @@ -112,7 +111,7 @@ { PIX_FMT_YUVJ420P, BC_YUVJ420P, 1 }, ///< Planar YUV 4:2:0 full scale (jpeg) { PIX_FMT_YUVJ422P, BC_YUVJ422P, 1 }, ///< Planar YUV 4:2:2 full scale (jpeg) { PIX_FMT_YUVJ444P, BC_YUVJ444P, 1 }, ///< Planar YUV 4:4:4 full scale (jpeg) - { PIX_FMT_RGBA32, BC_RGBA8888, 0 }, ///< Packed pixel, 4 bytes per pixel, BGRABGRA... + { PIX_FMT_BGRA, BC_RGBA8888, 0 }, ///< Packed pixel, 4 bytes per pixel, BGRABGRA... { PIX_FMT_RGB555, BC_RGB888, 0 }, ///< always stored in cpu endianness, most significant bit to 1 { PIX_FMT_GRAY8, BC_RGB888, 0 }, { PIX_FMT_MONOWHITE, BC_RGB888, 0 },///< 0 is white @@ -296,7 +295,7 @@ * Could someone please tell me, how people can make such a brain dead * RGBA format like in ffmpeg?? */ - if((in_format == PIX_FMT_RGBA32) && (out_format == BC_RGBA8888)) + if((in_format == PIX_FMT_BGRA) && (out_format == BC_RGBA8888)) { convert_image_decode_rgba(in_frame, out_frame, width, height); return; @@ -537,7 +536,7 @@ #ifdef HAVE_LIBSWSCALE - if(!((codec->avctx->pix_fmt == PIX_FMT_RGBA32) && + if(!((codec->avctx->pix_fmt == PIX_FMT_BGRA) && (vtrack->stream_cmodel == BC_RGBA8888))) { codec->swsContext = ========== -- Dmitry "Red Fox" Panov @ Home | KDE@FreeBSD Team | FreeBSD since September 1995 Khabarovsk, Russia | Skype:dima.panov | Jabber.org:fluffy.khv | ICQ:1745024