diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-03-25 15:47:55 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-03-25 15:47:55 +0100 |
commit | 0816abae1ed15fd2388626d49b4487b0a5628941 (patch) | |
tree | a53f6643ac60ea7c7d72c90af36eba4722532f0d /libavformat/oggenc.c | |
parent | e6fe804bdd6272de633ecf3fc73e1aba6746f641 (diff) | |
download | ffmpeg-0816abae1ed15fd2388626d49b4487b0a5628941.tar.gz |
Add an .oga muxer.
Diffstat (limited to 'libavformat/oggenc.c')
-rw-r--r-- | libavformat/oggenc.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c index 9c64755595..4398b20a7c 100644 --- a/libavformat/oggenc.c +++ b/libavformat/oggenc.c @@ -648,6 +648,30 @@ AVOutputFormat ff_ogg_muxer = { }; #endif +#if CONFIG_OGA_MUXER +static const AVClass oga_muxer_class = { + .class_name = "Ogg audio muxer", + .item_name = av_default_item_name, + .option = options, + .version = LIBAVUTIL_VERSION_INT, +}; + +AVOutputFormat ff_oga_muxer = { + .name = "oga", + .long_name = NULL_IF_CONFIG_SMALL("Ogg audio"), + .mime_type = "audio/ogg", + .extensions = "oga", + .priv_data_size = sizeof(OGGContext), + .audio_codec = AV_CODEC_ID_VORBIS, + .video_codec = AV_CODEC_ID_NONE, + .write_header = ogg_write_header, + .write_packet = ogg_write_packet, + .write_trailer = ogg_write_trailer, + .flags = AVFMT_TS_NEGATIVE, + .priv_class = &oga_muxer_class, +}; +#endif + #if CONFIG_SPEEX_MUXER static const AVClass speex_muxer_class = { .class_name = "Speex muxer", |