Re: [FFmpeg-devel] [PATCH 1/1] swscale/input: fix planar_rgb16_to_a for gbrap10be and gbrap12be formats

2021-11-04 Thread Michael Niedermayer
On Wed, Nov 03, 2021 at 10:55:14AM -0700, mindm...@gmail.com wrote:
> From: Mark Reid 
> 
> ---
>  libswscale/input.c  | 2 +-
>  tests/ref/fate/filter-pixfmts-scale | 4 ++--
>  2 files changed, 3 insertions(+), 3 deletions(-)

will apply

thx

[...]
-- 
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Take away the freedom of one citizen and you will be jailed, take away
the freedom of all citizens and you will be congratulated by your peers
in Parliament.


signature.asc
Description: PGP signature
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-devel] [PATCH 1/1] swscale/input: fix planar_rgb16_to_a for gbrap10be and gbrap12be formats

2021-11-03 Thread mindmark
From: Mark Reid 

---
 libswscale/input.c  | 2 +-
 tests/ref/fate/filter-pixfmts-scale | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libswscale/input.c b/libswscale/input.c
index 477dc3d6b2..336f957c8c 100644
--- a/libswscale/input.c
+++ b/libswscale/input.c
@@ -911,7 +911,7 @@ static void planar_rgb_to_uv(uint8_t *_dstU, uint8_t 
*_dstV, const uint8_t *src[
 }
 
 #define rdpx(src) \
-is_be ? AV_RB16(src) : AV_RL16(src)
+(is_be ? AV_RB16(src) : AV_RL16(src))
 static av_always_inline void planar_rgb16_to_y(uint8_t *_dst, const uint8_t 
*_src[4],
int width, int bpc, int is_be, 
int32_t *rgb2yuv)
 {
diff --git a/tests/ref/fate/filter-pixfmts-scale 
b/tests/ref/fate/filter-pixfmts-scale
index 07c4ff536d..1623e5c939 100644
--- a/tests/ref/fate/filter-pixfmts-scale
+++ b/tests/ref/fate/filter-pixfmts-scale
@@ -19,9 +19,9 @@ bgrad8316272bc3a360ef9dff3ecc84520a3
 bgra64be4e6a1b9f9c18b881c27d76611d45f737
 bgra64leefeee0abcc658ebcff049d5e74d74943
 gbrap   4a100f750ac846b34bfeef0d6893c3de
-gbrap10be   dc6aea3559ea4fcdda1ccc4f23d2f2fb
+gbrap10be   50735fbc471a5ac5a6645c85881f3670
 gbrap10le   6e1cba57029fdf0f9d46b5e5cd55112b
-gbrap12be   dbe3a662c016563529032cd4dfb80262
+gbrap12be   58170165829484b3db4a3b9165198987
 gbrap12le   24f5ecb32435b73353517e017c165e31
 gbrap16be   31968e6872a46e8174fb57f8920ed10d
 gbrap16le   8c6758f33671b673b6d30969fc05a23d
-- 
2.29.2

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".