1 Dec 2010 01:24
Re: [PATCH] RTP depacketizer for QCELP
Reynaldo H. Verdejo Pinochet <reynaldo <at> opendot.cl>
2010-12-01 00:24:56 GMT
2010-12-01 00:24:56 GMT
Hi
On 11/29/2010 02:19 PM, Martin Storsjö wrote:
> [..]
> I refactored this a bit, making both this code path and the old one much
> cleaner, see attached. The actual depacketizer is unchanged from the
> previous patchset.
>
> // Martin
>[..]
>+struct InterleavePacket {
>+ int pos;
>+ int size;
>+ /* The largest frame is 35 bytes, only 10 frames are allowed per
>+ * packet, and we return the first one immediately, so allocate
>+ * space for 9 frames */
>+ uint8_t data[35*9];
>+};
>+
>+struct PayloadContext {
>+ int interleave_size;
>+ int interleave_index;
>+ struct InterleavePacket group[6];
>+ int group_finished;
>+
>+ /* The maximum packet size, 10 frames of 35 bytes each, and one
>+ * packet header byte. */
>+ uint8_t next_data[1 + 35*10];
>+ int next_size;
>+ uint32_t next_timestamp;
(Continue reading)
RSS Feed