[FFmpeg-cvslog] swscale/input: fix planar_rgb16_to_a for gbrap10be and gbrap12be formats

Mark Reid git at videolan.org
Thu Nov 4 22:41:00 EET 2021


ffmpeg | branch: master | Mark Reid <mindmark at gmail.com> | Wed Nov  3 10:55:14 2021 -0700| [d2379bd6a03bc57eb9cc027a75f21086474422fe] | committer: Michael Niedermayer

swscale/input: fix planar_rgb16_to_a for gbrap10be and gbrap12be formats

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d2379bd6a03bc57eb9cc027a75f21086474422fe
---

 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 @@ bgra                d8316272bc3a360ef9dff3ecc84520a3
 bgra64be            4e6a1b9f9c18b881c27d76611d45f737
 bgra64le            efeee0abcc658ebcff049d5e74d74943
 gbrap               4a100f750ac846b34bfeef0d6893c3de
-gbrap10be           dc6aea3559ea4fcdda1ccc4f23d2f2fb
+gbrap10be           50735fbc471a5ac5a6645c85881f3670
 gbrap10le           6e1cba57029fdf0f9d46b5e5cd55112b
-gbrap12be           dbe3a662c016563529032cd4dfb80262
+gbrap12be           58170165829484b3db4a3b9165198987
 gbrap12le           24f5ecb32435b73353517e017c165e31
 gbrap16be           31968e6872a46e8174fb57f8920ed10d
 gbrap16le           8c6758f33671b673b6d30969fc05a23d



More information about the ffmpeg-cvslog mailing list