From a7f5fe1d72aef47e46505f94ad247af5486b43de Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Date: Fri, 15 Mar 2019 01:14:58 +0100
Subject: [PATCH] lavc/qtrle: Do not use aligned 64bit write.
Fixes a crash on sparc64.
---
libavcodec/qtrle.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -388,7 +388,7 @@ static void qtrle_decode_32bpp(QtrleContext *s, int row_ptr, int lines_to_change
/* copy pixels directly to output */
rle_code_half = rle_code / 2;
while (rle_code_half--) { /* copy 2 argb raw value at the same time */
- AV_WN64A(rgb + pixel_ptr, bytestream2_get_ne64(&s->g));
+ AV_WN64(rgb + pixel_ptr, bytestream2_get_ne64(&s->g));
pixel_ptr += 8;
}
--
1.7.10.4