[FFmpeg-devel] Fix bug for POWER LE in file libswscale/ppc/yuv2rgb_altivec.c

Michael Niedermayer michael at niedermayer.cc
Thu Jul 16 14:26:46 CEST 2015


On Thu, Jul 16, 2015 at 05:26:25PM +0800, rongyan wrote:
> Hi,
>  We propose this patch to fix the bug on POWER LE when converting yuv to rgb in macros vec_unh() and vec_unl() in file libswscale/ppc/yuv2rgb_altivec.c.
>   
>  Our test case is like this:
>  ffmpeg -i input.mov -f rawvideo -pix_fmt rgb24 result.rgb
>   
>  Before fix the bug, the output rgb frame is as follows:
>  
>  After bug fix, the output rgb frame is:
>  
>   
>  The fate test result with out patch is in the below:
>  
>  Thanks for your review.
>   
>  Rong Yan
>   ------------------
>   The world has enough for everyone's need, but not enough for everyone's greed.




>  yuv2rgb_altivec.c |    5 +++++
>  1 file changed, 5 insertions(+)
> 5379a9ce8f3e53c47d32862a58aff5fc8012a41d  0001-swscale-ppc-yuv2rgb_altivec-POWER-LE-support-in-the-.patch
> From 503528df22385a7a4d7369a3133b32ea5d64c816 Mon Sep 17 00:00:00 2001
> From: Rong Yan <rongyan236 at gmail.com>
> Date: Thu, 16 Jul 2015 03:52:47 -0500
> Subject: [PATCH] swscale/ppc/yuv2rgb_altivec: POWER LE support in the macros
>  vec_unh() and vec_unl()

applied

thanks

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Republics decline into democracies and democracies degenerate into
despotisms. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150716/0f516e40/attachment.sig>


More information about the ffmpeg-devel mailing list