summaryrefslogtreecommitdiff
path: root/libavformat/rawenc.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2017-12-17 20:24:21 +0100
committerAurelien Jacobs <aurel@gnuage.org>2018-03-07 22:26:53 +0100
commit88508a87a55789672ce0eb66ccd23fda38eab5af (patch)
tree181ecd92b3b5793f4aeb65c37f218abeff63e379 /libavformat/rawenc.c
parentff4600d95471a653073a961ec77f32e2f946684a (diff)
downloadffmpeg-88508a87a55789672ce0eb66ccd23fda38eab5af.tar.gz
sbc: add raw muxer for SBC
Diffstat (limited to 'libavformat/rawenc.c')
-rw-r--r--libavformat/rawenc.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libavformat/rawenc.c b/libavformat/rawenc.c
index fcfbfbce8e..809ca23b1a 100644
--- a/libavformat/rawenc.c
+++ b/libavformat/rawenc.c
@@ -452,6 +452,19 @@ AVOutputFormat ff_rawvideo_muxer = {
};
#endif
+#if CONFIG_SBC_MUXER
+AVOutputFormat ff_sbc_muxer = {
+ .name = "sbc",
+ .long_name = NULL_IF_CONFIG_SMALL("raw SBC"),
+ .mime_type = "audio/x-sbc",
+ .extensions = "sbc,msbc",
+ .audio_codec = AV_CODEC_ID_SBC,
+ .write_header = force_one_stream,
+ .write_packet = ff_raw_write_packet,
+ .flags = AVFMT_NOTIMESTAMPS,
+};
+#endif
+
#if CONFIG_TRUEHD_MUXER
AVOutputFormat ff_truehd_muxer = {
.name = "truehd",