Mercurial > libavformat.hg
changeset 4970:04c546a9a3fd libavformat
Correctly set the "AU size" field in the payload header for
fragmented AAC frames
author | lucabe |
---|---|
date | Fri, 29 May 2009 13:46:46 +0000 |
parents | 85e8512e7ec0 |
children | cffc8ed619e9 |
files | rtp_aac.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rtp_aac.c Wed May 27 22:43:52 2009 +0000 +++ b/rtp_aac.c Fri May 29 13:46:46 2009 +0000 @@ -66,14 +66,16 @@ memcpy(s->buf_ptr, buff, size); s->buf_ptr += size; } else { + int au_size = size; + max_packet_size = s->max_payload_size - 4; p = s->buf; p[0] = 0; p[1] = 16; while (size > 0) { len = FFMIN(size, max_packet_size); - p[2] = len >> 5; - p[3] = (size & 0x1F) << 3; + p[2] = au_size >> 5; + p[3] = (au_size & 0x1F) << 3; memcpy(p + 4, buff, len); ff_rtp_send_data(s1, p, len + 4, len == size); size -= len;