summaryrefslogtreecommitdiff
path: root/libavformat/rtpenc.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/rtpenc.h')
-rw-r--r--libavformat/rtpenc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/rtpenc.h b/libavformat/rtpenc.h
index ac5a62242d..3a9e19be06 100644
--- a/libavformat/rtpenc.h
+++ b/libavformat/rtpenc.h
@@ -65,6 +65,10 @@ typedef struct RTPMuxContext RTPMuxContext;
#define FF_RTP_FLAG_MP4A_LATM 1
+#define FF_RTP_FLAG_OPTS(ctx, fieldname) \
+ { "rtpflags", "RTP muxer flags", offsetof(ctx, fieldname), FF_OPT_TYPE_FLAGS, {.dbl = 0}, INT_MIN, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM, "rtpflags" }, \
+ { "latm", "Use MP4A-LATM packetization instead of MPEG4-GENERIC for AAC", 0, FF_OPT_TYPE_CONST, {.dbl = FF_RTP_FLAG_MP4A_LATM}, INT_MIN, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM, "rtpflags" } \
+
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);