rtpg726depay: fix endian conversion

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1469>
This commit is contained in:
Jeongki Kim 2021-12-24 14:52:38 +09:00
parent 818a185b5d
commit 04f6fbc237

View file

@ -285,7 +285,7 @@ gst_rtp_g726_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp)
((tmp & 0x1c) << 1) | ((tmp & 0x03) << 6);
tmp = *in++;
*out++ = ((tmp & 0x80) >> 7) |
((tmp & 0x70) >> 3) | ((tmp & 0x0e) << 4) | ((tmp & 0x01) << 7);
((tmp & 0x70) >> 3) | ((tmp & 0x0e) << 3) | ((tmp & 0x01) << 7);
tmp = *in++;
*out++ = ((tmp & 0xc0) >> 6) |
((tmp & 0x38) >> 1) | ((tmp & 0x07) << 5);