diff options
author | Luca Abeni <lucabe72@email.it> | 2012-11-08 04:38:50 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-11-08 04:54:16 +0400 |
commit | 78e08fd340e03b49f75e1ac31c20cc21434794bd (patch) | |
tree | 090a605c432643d9fb970499ee99c3ded7ded1fb /libavformat/rtpenc_aac.c | |
parent | d55911adc8befee4947b46c1a2183ab3dc7d06b6 (diff) |
rtpenc_aac: Fix 10l bug
Fixes CID602564
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rtpenc_aac.c')
-rw-r--r-- | libavformat/rtpenc_aac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/rtpenc_aac.c b/libavformat/rtpenc_aac.c index e19b28697e..f4c515e756 100644 --- a/libavformat/rtpenc_aac.c +++ b/libavformat/rtpenc_aac.c @@ -47,8 +47,8 @@ void ff_rtp_send_aac(AVFormatContext *s1, const uint8_t *buff, int size) memmove(p + 2, s->buf + 2, au_size); } /* Write the AU header size */ - p[0] = ((au_size * 8) & 0xFF) >> 8; - p[1] = (au_size * 8) & 0xFF; + p[0] = au_size >> 5; + p[1] = (au_size & 0x1F) << 3; ff_rtp_send_data(s1, p, s->buf_ptr - p, 1); |