aboutsummaryrefslogtreecommitdiff
path: root/libavformat/rawenc.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos2017-08-26 11:43:09 +0200
committerCarl Eugen Hoyos2017-08-26 11:43:09 +0200
commit9d494c5e553fe3430df2fde0c456a723ae15f4ab (patch)
treeb8ea261219ef8efd864d535cca7812df058c71c3 /libavformat/rawenc.c
parent9d6aab6fa160f0b7528dafb741573b7d0de3b0eb (diff)
lavf/rawenc: Add little- and big-endian G.726 muxers.
Diffstat (limited to 'libavformat/rawenc.c')
-rw-r--r--libavformat/rawenc.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/libavformat/rawenc.c b/libavformat/rawenc.c
index 26baa850e1..f640121cb4 100644
--- a/libavformat/rawenc.c
+++ b/libavformat/rawenc.c
@@ -196,6 +196,30 @@ AVOutputFormat ff_g723_1_muxer = {
};
#endif
+#if CONFIG_G726_MUXER
+AVOutputFormat ff_g726_muxer = {
+ .name = "g726",
+ .long_name = NULL_IF_CONFIG_SMALL("raw big-endian G.726 (\"left-justified\")"),
+ .audio_codec = AV_CODEC_ID_ADPCM_G726,
+ .video_codec = AV_CODEC_ID_NONE,
+ .write_header = force_one_stream,
+ .write_packet = ff_raw_write_packet,
+ .flags = AVFMT_NOTIMESTAMPS,
+};
+#endif
+
+#if CONFIG_G726LE_MUXER
+AVOutputFormat ff_g726le_muxer = {
+ .name = "g726le",
+ .long_name = NULL_IF_CONFIG_SMALL("raw little-endian G.726 (\"right-justified\")"),
+ .audio_codec = AV_CODEC_ID_ADPCM_G726LE,
+ .video_codec = AV_CODEC_ID_NONE,
+ .write_header = force_one_stream,
+ .write_packet = ff_raw_write_packet,
+ .flags = AVFMT_NOTIMESTAMPS,
+};
+#endif
+
#if CONFIG_GSM_MUXER
AVOutputFormat ff_gsm_muxer = {
.name = "gsm",