avienc: saner default audio codec.

libmp3lame if available, ac3 otherwise.
This commit is contained in:
Anton Khirnov 2011-08-20 16:05:17 +02:00
parent 3436c4a368
commit b71389cbae
2 changed files with 6 additions and 2 deletions

View File

@ -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,

View File

@ -44,7 +44,7 @@ do_audio_only()
}
if [ -n "$do_avi" ] ; then
do_lavf avi
do_lavf avi "-acodec mp2"
fi
if [ -n "$do_asf" ] ; then