diff options
author | Juan Carlos Rodriguez <ing.juancarlosrodriguez@hotmail.com> | 2011-05-18 15:00:03 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2011-06-10 10:49:20 +0300 |
commit | 0832122880fa50e66dfd62eb6aa5c814f83f68d9 (patch) | |
tree | d6584051af4edd2d15edd1c99a0524abc5aa67a3 /libavformat/rtpenc.h | |
parent | cb7c11cc9e7e05c819fff487a3f486f11ab4b860 (diff) | |
download | ffmpeg-0832122880fa50e66dfd62eb6aa5c814f83f68d9.tar.gz |
rtpenc: MP4A-LATM payload support
This is enabled with an AVOption on the RTP muxer. The SDP
generator looks for a latm flag in the rtpflags field.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpenc.h')
-rw-r--r-- | libavformat/rtpenc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/rtpenc.h b/libavformat/rtpenc.h index 21c5c312a4..ac5a62242d 100644 --- a/libavformat/rtpenc.h +++ b/libavformat/rtpenc.h @@ -25,6 +25,7 @@ #include "rtp.h" struct RTPMuxContext { + const AVClass *av_class; AVFormatContext *ic; AVStream *st; int payload_type; @@ -56,15 +57,20 @@ struct RTPMuxContext { * (1, 2 or 4) */ int nal_length_size; + + int flags; }; typedef struct RTPMuxContext RTPMuxContext; +#define FF_RTP_FLAG_MP4A_LATM 1 + void ff_rtp_send_data(AVFormatContext *s1, const uint8_t *buf1, int len, int m); void ff_rtp_send_h264(AVFormatContext *s1, const uint8_t *buf1, int size); void ff_rtp_send_h263(AVFormatContext *s1, const uint8_t *buf1, int size); void ff_rtp_send_aac(AVFormatContext *s1, const uint8_t *buff, int size); +void ff_rtp_send_latm(AVFormatContext *s1, const uint8_t *buff, int size); void ff_rtp_send_amr(AVFormatContext *s1, const uint8_t *buff, int size); void ff_rtp_send_mpegvideo(AVFormatContext *s1, const uint8_t *buf1, int size); void ff_rtp_send_xiph(AVFormatContext *s1, const uint8_t *buff, int size); |