[FFmpeg-cvslog] rtpenc_aac: Fix 10l bug

Luca Abeni git at videolan.org
Thu Nov 8 01:55:41 CET 2012


ffmpeg | branch: master | Luca Abeni <lucabe72 at email.it> | Thu Nov  8 01:38:50 2012 +0100| [78e08fd340e03b49f75e1ac31c20cc21434794bd] | committer: Michael Niedermayer

rtpenc_aac: Fix 10l bug

Fixes CID602564
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=78e08fd340e03b49f75e1ac31c20cc21434794bd
---

 libavformat/rtpenc_aac.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/rtpenc_aac.c b/libavformat/rtpenc_aac.c
index e19b286..f4c515e 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);
 



More information about the ffmpeg-cvslog mailing list