Commit 9e70d052 authored by Committed by Tanu KaskinenBrowse files
bluetooth: Fix usage of RTP structures in SBC codec
Rename struct rtp_payload to rtp_sbc_payload as it is specific for SBC codec payload. Add proper checks for endianity in rtp.h header and use uint8_t type where appropriated. Field frame_count is only 4 bit number, so add checks to prevent overflow. And because is_fragmented field is not parsed by decoder there is no support for decoding fragmented SBC frames. So throw an error in this case.
Showing with 58 additions and 35 deletions