[FFmpeg-devel] [PATCH 1/4] avformat/oggenc: make flac the default for oga muxer

James Almer jamrial at gmail.com
Thu Jul 7 02:25:24 EEST 2016


While not enforced, RFC 5334[1] recommends to use the .oga extension
for all audio codecs except Vorbis (.ogg) and Speex (.spx)

RFC 7845[2] also adds Opus (.opus) to this list.

[1] https://tools.ietf.org/html/rfc5334#section-10.3
[2] https://tools.ietf.org/html/rfc7845#section-9

Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavformat/oggenc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c
index f998af3..fe1f34d 100644
--- a/libavformat/oggenc.c
+++ b/libavformat/oggenc.c
@@ -688,8 +688,7 @@ AVOutputFormat ff_oga_muxer = {
     .mime_type         = "audio/ogg",
     .extensions        = "oga",
     .priv_data_size    = sizeof(OGGContext),
-    .audio_codec       = CONFIG_LIBVORBIS_ENCODER ?
-                         AV_CODEC_ID_VORBIS : AV_CODEC_ID_FLAC,
+    .audio_codec       = AV_CODEC_ID_FLAC,
     .write_header      = ogg_write_header,
     .write_packet      = ogg_write_packet,
     .write_trailer     = ogg_write_trailer,
-- 
2.9.0



More information about the ffmpeg-devel mailing list