[FFmpeg-cvslog] r18400 - trunk/libavformat/rtp_aac.c
lucabe
subversion
Thu Apr 9 23:37:11 CEST 2009
Author: lucabe
Date: Thu Apr 9 23:37:11 2009
New Revision: 18400
Log:
Fix two checks in the AAC packetiser, which were too conservative
Patch by Martin Storsj? (martin AT martin DOT st)
Modified:
trunk/libavformat/rtp_aac.c
Modified: trunk/libavformat/rtp_aac.c
==============================================================================
--- trunk/libavformat/rtp_aac.c Thu Apr 9 23:19:25 2009 (r18399)
+++ trunk/libavformat/rtp_aac.c Thu Apr 9 23:37:11 2009 (r18400)
@@ -39,7 +39,7 @@ void ff_rtp_send_aac(AVFormatContext *s1
/* test if the packet must be sent */
len = (s->buf_ptr - s->buf);
- if ((s->num_frames == MAX_FRAMES_PER_PACKET) || (len && (len + size) > max_packet_size)) {
+ if ((s->num_frames == MAX_FRAMES_PER_PACKET) || (len && (len + size) > s->max_payload_size)) {
int au_size = s->num_frames * 2;
p = s->buf + MAX_AU_HEADERS_SIZE - au_size - 2;
@@ -59,7 +59,7 @@ void ff_rtp_send_aac(AVFormatContext *s1
s->timestamp = s->cur_timestamp;
}
- if (size < max_packet_size) {
+ if (size <= max_packet_size) {
p = s->buf + s->num_frames++ * 2 + 2;
*p++ = size >> 5;
*p = (size & 0x1F) << 3;
More information about the ffmpeg-cvslog
mailing list