diff options
author | Taylor Brandstetter <deadbeef@webrtc.org> | 2020-02-28 15:53:25 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-03-03 01:51:51 +0000 |
commit | 83762b21dbd2efbcbed81fefbd0218a99c03c18a (patch) | |
tree | 2715a63c3d14af07cb58e6f778eafeb22a7075f8 /media | |
parent | d084ea93b6c92495f0a901645231b4e1e849aa39 (diff) | |
download | webrtc-83762b21dbd2efbcbed81fefbd0218a99c03c18a.tar.gz |
Use NetworkToHost32 instead of HostToNetwork32 to translate PPID.
Note that this wasn't actually making a difference since both do the
same thing effectively.
Bug: webrtc:11386
Change-Id: I49d84d363dce12eabeb3770b40abdfdb674a05ac
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/169433
Commit-Queue: Taylor <deadbeef@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30665}
Diffstat (limited to 'media')
-rw-r--r-- | media/sctp/sctp_transport.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/sctp/sctp_transport.cc b/media/sctp/sctp_transport.cc index 3a083b4246..40061a6048 100644 --- a/media/sctp/sctp_transport.cc +++ b/media/sctp/sctp_transport.cc @@ -317,7 +317,7 @@ class SctpTransport::UsrSctpWrapper { // memory cleanup. But this does simplify code. const PayloadProtocolIdentifier ppid = static_cast<PayloadProtocolIdentifier>( - rtc::HostToNetwork32(rcv.rcv_ppid)); + rtc::NetworkToHost32(rcv.rcv_ppid)); DataMessageType type = DMT_NONE; if (!GetDataMediaType(ppid, &type) && !(flags & MSG_NOTIFICATION)) { // It's neither a notification nor a recognized data packet. Drop it. |