summaryrefslogtreecommitdiff
path: root/libavformat/rawenc.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-06-28 13:53:29 +0200
committerDiego Biurrun <diego@biurrun.de>2016-06-29 20:24:10 +0200
commite72d6fa08a3c1876109149401753a8d2c736d418 (patch)
tree0678e715a3e44c44ed171103f1d4e48b1bac38aa /libavformat/rawenc.c
parent67cb2c0f73ec08bdcecd675c1ffe25c3a5b26ef2 (diff)
downloadffmpeg-e72d6fa08a3c1876109149401753a8d2c736d418.tar.gz
build: Move MP2 muxer declaration away from MP3 muxer code
The MP2 muxer uses none of the code of the MP3 muxer.
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 e4c79bf3ee..60740fb405 100644
--- a/libavformat/rawenc.c
+++ b/libavformat/rawenc.c
@@ -231,6 +231,19 @@ AVOutputFormat ff_mlp_muxer = {
};
#endif
+#if CONFIG_MP2_MUXER
+AVOutputFormat ff_mp2_muxer = {
+ .name = "mp2",
+ .long_name = NULL_IF_CONFIG_SMALL("MP2 (MPEG audio layer 2)"),
+ .mime_type = "audio/mpeg",
+ .extensions = "mp2,m2a,mpa",
+ .audio_codec = AV_CODEC_ID_MP2,
+ .video_codec = AV_CODEC_ID_NONE,
+ .write_packet = ff_raw_write_packet,
+ .flags = AVFMT_NOTIMESTAMPS,
+};
+#endif
+
#if CONFIG_MPEG1VIDEO_MUXER
AVOutputFormat ff_mpeg1video_muxer = {
.name = "mpeg1video",