amr: Add data[0] field to amr_hdr

This allows easily accessing the AMR payload located after the TOC.

Change-Id: I72c0a001bf7ce9a63ac03beef352af177084e644
Pau Espin 2022-09-28 14:26:29 +02:00
parent 2640c157f8
commit f136c648fb
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ struct amr_hdr {
uint8_t cmr:4, pad1:4;
uint8_t f:1, ft:4, q:1, pad2:2;
uint8_t data[0];
} __attribute__((packed));
static inline void *osmo_amr_get_payload(struct amr_hdr *amrh)