aboutsummaryrefslogtreecommitdiff
path: root/libavformat/rawenc.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos2016-04-09 11:44:50 +0200
committerCarl Eugen Hoyos2016-04-09 11:44:50 +0200
commitb0c026a27f9498b8f118684a2830ca7df7eae374 (patch)
tree9cee6d1f33e57d337cb18793f30512e2665d6c6e /libavformat/rawenc.c
parent56cb465b38ab29afedd502c1e2ad66e6dce16b93 (diff)
lavf/rawenc: Add a raw gsm muxer.
Diffstat (limited to 'libavformat/rawenc.c')
-rw-r--r--libavformat/rawenc.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libavformat/rawenc.c b/libavformat/rawenc.c
index 358ee4e2f0..14ba9fbf47 100644
--- a/libavformat/rawenc.c
+++ b/libavformat/rawenc.c
@@ -193,6 +193,20 @@ AVOutputFormat ff_g723_1_muxer = {
};
#endif
+#if CONFIG_GSM_MUXER
+AVOutputFormat ff_gsm_muxer = {
+ .name = "gsm",
+ .long_name = NULL_IF_CONFIG_SMALL("raw GSM"),
+ .mime_type = "audio/x-gsm",
+ .extensions = "gsm",
+ .audio_codec = AV_CODEC_ID_GSM,
+ .video_codec = AV_CODEC_ID_NONE,
+ .write_header = force_one_stream,
+ .write_packet = ff_raw_write_packet,
+ .flags = AVFMT_NOTIMESTAMPS,
+};
+#endif
+
#if CONFIG_H261_MUXER
AVOutputFormat ff_h261_muxer = {
.name = "h261",