[FFmpeg-cvslog] dstdec: big-endian compatiblity

Peter Ross git at videolan.org
Fri Jan 11 14:47:03 EET 2019


ffmpeg | branch: master | Peter Ross <pross at xvid.org> | Sun Jan  6 21:38:47 2019 +1100| [127564b3f114da4a08883a533411f83584874aac] | committer: Peter Ross

dstdec: big-endian compatiblity

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

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

diff --git a/libavcodec/dstdec.c b/libavcodec/dstdec.c
index 368cb64931..4f75bc9f37 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);
         }
     }
 



More information about the ffmpeg-cvslog mailing list