aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avienc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-08-22 14:06:08 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-08-22 15:00:53 +0200
commit124deea1a0ccc4296cc6021231a7e6fbf336ff3a (patch)
tree95db44e4e9ed969674f9dbb194a999c8150a1e03 /libavformat/avienc.c
parentaeba058340ec47a10049c9cefb7ca8d500047b31 (diff)
parentae60927aefe7a9debc285451b2badf1b8eb5ab22 (diff)
downloadffmpeg-124deea1a0ccc4296cc6021231a7e6fbf336ff3a.tar.gz
Merge remote-tracking branch 'qatar/master'
* qatar/master: libx264: only use ABR mode when the user explicitly set bitrate. libx264: use medium preset by default. mp2 encoder: make 128k the default bitrate. movenc: use libx264 by default when possible for mov, mp4 and psp avienc: saner default audio codec. matroskaenc: saner default codecs. avplay: add examples of how to specify size/pixel format through private options lavc: add A|E|D flags to "ac" and "ar" options Conflicts: doc/ffplay.texi libavcodec/libx264.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avienc.c')
-rw-r--r--libavformat/avienc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavformat/avienc.c b/libavformat/avienc.c
index 20bbfc0375..19cabe2aef 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,