summaryrefslogtreecommitdiff
path: root/libavformat/g723_1.c
diff options
context:
space:
mode:
authorMohamed Naufal <naufal22@gmail.com>2011-10-10 02:48:16 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-10-10 02:58:18 +0200
commit19562b68cbb890d99bb7750e7a3320d0e5b9cc4f (patch)
treefccbfa4351bde78ce41633de8ef463e47570b4f1 /libavformat/g723_1.c
parent059707ee2d71c3b2ae94b240559d893b1eeda903 (diff)
g723.1 muxer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/g723_1.c')
-rw-r--r--libavformat/g723_1.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/libavformat/g723_1.c b/libavformat/g723_1.c
index 19441a1b19..f6c394b18a 100644
--- a/libavformat/g723_1.c
+++ b/libavformat/g723_1.c
@@ -81,3 +81,24 @@ AVInputFormat ff_g723_1_demuxer = {
.extensions = "tco,rco",
.flags = AVFMT_GENERIC_INDEX
};
+
+#if CONFIG_G723_1_MUXER
+static int g723_1_write_packet(AVFormatContext *s, AVPacket *pkt)
+{
+ put_buffer(s->pb, pkt->data, pkt->size);
+ put_flush_packet(s->pb);
+ return 0;
+}
+
+AVOutputFormat ff_g723_1_muxer = {
+ "g723_1",
+ NULL_IF_CONFIG_SMALL("G.723.1 format"),
+ "audio/g723",
+ "tco",
+ 0,
+ CODEC_ID_G723_1,
+ CODEC_ID_NONE,
+ NULL,
+ g723_1_write_packet,
+};
+#endif