mirror of https://git.ffmpeg.org/ffmpeg.git
dstdec: big-endian compatiblity
This commit is contained in:
parent
b4e6d1f597
commit
127564b3f1
|
@ -343,8 +343,8 @@ static int decode_frame(AVCodecContext *avctx, void *data,
|
||||||
v = ((predict >> 15) ^ residual) & 1;
|
v = ((predict >> 15) ^ residual) & 1;
|
||||||
dsd[((i >> 3) * channels + ch) << 2] |= v << (7 - (i & 0x7 ));
|
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_WL64A(status + 8, (AV_RL64A(status + 8) << 1) | ((AV_RL64A(status) >> 63) & 1));
|
||||||
AV_WN64A(status, (AV_RN64A(status) << 1) | v);
|
AV_WL64A(status, (AV_RL64A(status) << 1) | v);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue