Mercurial > libavformat.hg
diff rtp.c @ 2550:e9c34ec665c6 libavformat
Support for AAC streaming over RTP. Fragmentation is not implemented yet
author | lucabe |
---|---|
date | Fri, 14 Sep 2007 08:17:06 +0000 |
parents | ca3cba9c641f |
children | 5fa858c38291 |
line wrap: on
line diff
--- a/rtp.c Thu Sep 13 12:46:30 2007 +0000 +++ b/rtp.c Fri Sep 14 08:17:06 2007 +0000 @@ -28,6 +28,7 @@ #include "rtp_internal.h" #include "rtp_h264.h" #include "rtp_mpv.h" +#include "rtp_aac.h" //#define DEBUG @@ -762,6 +763,8 @@ s->max_payload_size = n * TS_PACKET_SIZE; s->buf_ptr = s->buf; break; + case CODEC_ID_AAC: + s->read_buf_index = 0; default: if (st->codec->codec_type == CODEC_TYPE_AUDIO) { av_set_pts_info(st, 32, 1, st->codec->sample_rate); @@ -993,6 +996,9 @@ case CODEC_ID_MPEG1VIDEO: ff_rtp_send_mpegvideo(s1, buf1, size); break; + case CODEC_ID_AAC: + ff_rtp_send_aac(s1, buf1, size); + break; case CODEC_ID_MPEG2TS: rtp_send_mpegts_raw(s1, buf1, size); break;