[FFmpeg-cvslog] lavf/rawenc: Add a raw gsm muxer.
Carl Eugen Hoyos
git at videolan.org
Sat Apr 9 11:45:37 CEST 2016
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sat Apr 9 11:44:50 2016 +0200| [b0c026a27f9498b8f118684a2830ca7df7eae374] | committer: Carl Eugen Hoyos
lavf/rawenc: Add a raw gsm muxer.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b0c026a27f9498b8f118684a2830ca7df7eae374
---
libavformat/Makefile | 1 +
libavformat/allformats.c | 2 +-
libavformat/rawenc.c | 14 ++++++++++++++
libavformat/version.h | 2 +-
4 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/libavformat/Makefile b/libavformat/Makefile
index 5515b84..5921368 100644
--- a/libavformat/Makefile
+++ b/libavformat/Makefile
@@ -181,6 +181,7 @@ OBJS-$(CONFIG_FSB_DEMUXER) += fsb.o
OBJS-$(CONFIG_GIF_MUXER) += gif.o
OBJS-$(CONFIG_GIF_DEMUXER) += gifdec.o
OBJS-$(CONFIG_GSM_DEMUXER) += gsmdec.o
+OBJS-$(CONFIG_GSM_MUXER) += rawenc.o
OBJS-$(CONFIG_GXF_DEMUXER) += gxf.o
OBJS-$(CONFIG_GXF_MUXER) += gxfenc.o audiointerleave.o
OBJS-$(CONFIG_G722_DEMUXER) += g722.o rawdec.o
diff --git a/libavformat/allformats.c b/libavformat/allformats.c
index c5aa093..d7023ea 100644
--- a/libavformat/allformats.c
+++ b/libavformat/allformats.c
@@ -139,7 +139,7 @@ void av_register_all(void)
REGISTER_DEMUXER (G729, g729);
REGISTER_DEMUXER (GENH, genh);
REGISTER_MUXDEMUX(GIF, gif);
- REGISTER_DEMUXER (GSM, gsm);
+ REGISTER_MUXDEMUX(GSM, gsm);
REGISTER_MUXDEMUX(GXF, gxf);
REGISTER_MUXDEMUX(H261, h261);
REGISTER_MUXDEMUX(H263, h263);
diff --git a/libavformat/rawenc.c b/libavformat/rawenc.c
index 358ee4e..14ba9fb 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",
diff --git a/libavformat/version.h b/libavformat/version.h
index 29047ab..92a77ef 100644
--- a/libavformat/version.h
+++ b/libavformat/version.h
@@ -30,7 +30,7 @@
#include "libavutil/version.h"
#define LIBAVFORMAT_VERSION_MAJOR 57
-#define LIBAVFORMAT_VERSION_MINOR 31
+#define LIBAVFORMAT_VERSION_MINOR 32
#define LIBAVFORMAT_VERSION_MICRO 100
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
More information about the ffmpeg-cvslog
mailing list