aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-08-20 16:05:17 +0200
committerAnton Khirnov <anton@khirnov.net>2011-08-22 07:17:19 +0200
commitb71389cbaee037f90ddaf4f7e8892a17831e860e (patch)
tree029b1536ab65a7ca203ede82a404a726e2b5ec3b /libavformat
parent3436c4a368aca1bdcbf28bdfc996903460263de0 (diff)
downloadffmpeg-b71389cbaee037f90ddaf4f7e8892a17831e860e.tar.gz
avienc: saner default audio codec.
libmp3lame if available, ac3 otherwise.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/avienc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavformat/avienc.c b/libavformat/avienc.c
index 1dbed8bc80..cf2e1d601d 100644
--- a/libavformat/avienc.c
+++ b/libavformat/avienc.c
@@ -644,7 +644,11 @@ AVOutputFormat ff_avi_muxer = {
.mime_type = "video/x-msvideo",
.extensions = "avi",
.priv_data_size = sizeof(AVIContext),
- .audio_codec = CODEC_ID_MP2,
+#if CONFIG_LIBMP3LAME_ENCODER
+ .audio_codec = CODEC_ID_MP3,
+#else
+ .audio_codec = CODEC_ID_AC3,
+#endif
.video_codec = CODEC_ID_MPEG4,
.write_header = avi_write_header,
.write_packet = avi_write_packet,