diff mbox

[FFmpeg-devel,2/2] dstdec: big-endian compatiblity

Message ID e0594cad888f2358e2c1b085beda5c8f86af4c7c.1546860888.git.pross@xvid.org
State Accepted
Commit 127564b3f114da4a08883a533411f83584874aac
Headers show

Commit Message

Peter Ross Jan. 7, 2019, 11:41 a.m. UTC
---
updated accordingly...

 libavcodec/dstdec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/libavcodec/dstdec.c b/libavcodec/dstdec.c
index 511861f4d2..0614c99c4b 100644
--- a/libavcodec/dstdec.c
+++ b/libavcodec/dstdec.c
@@ -343,8 +343,8 @@  static int decode_frame(AVCodecContext *avctx, void *data,
             v = ((predict >> 15) ^ residual) & 1;
             dsd[((i >> 3) * channels + ch) << 2] |= v << (7 - (i & 0x7 ));
 
-            AV_WN64A(status + 8, (AV_RN64A(status + 8) << 1) | ((AV_RN64A(status) >> 63) & 1));
-            AV_WN64A(status, (AV_RN64A(status) << 1) | v);
+            AV_WL64A(status + 8, (AV_RL64A(status + 8) << 1) | ((AV_RL64A(status) >> 63) & 1));
+            AV_WL64A(status, (AV_RL64A(status) << 1) | v);
         }
     }