Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2019-03-15 03:14:58 +0300
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2019-03-20 19:16:02 +0300
commitba0a56e0b00474eb0e47d503b139816fe28c47e5 (patch)
tree549f34e9e0079f1b4552640f2e80ab6c2e70c585 /libavcodec/qtrle.c
parent6fcf7adc019b29926ce7b096640cfdf714074bcd (diff)
lavc/qtrle: Avoid an unaligned 64-bit write.
pixel_ptr can be increased by 4. Fixes a crash on sparc64.
Diffstat (limited to 'libavcodec/qtrle.c')
-rw-r--r--libavcodec/qtrle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/qtrle.c b/libavcodec/qtrle.c
index 1cb3eb05bd..1613530e02 100644
--- a/libavcodec/qtrle.c
+++ b/libavcodec/qtrle.c
@@ -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;
}