Commit b71389cb authored by Anton Khirnov's avatar Anton Khirnov

avienc: saner default audio codec.

libmp3lame if available, ac3 otherwise.
parent 3436c4a3
...@@ -644,7 +644,11 @@ AVOutputFormat ff_avi_muxer = { ...@@ -644,7 +644,11 @@ AVOutputFormat ff_avi_muxer = {
.mime_type = "video/x-msvideo", .mime_type = "video/x-msvideo",
.extensions = "avi", .extensions = "avi",
.priv_data_size = sizeof(AVIContext), .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, .video_codec = CODEC_ID_MPEG4,
.write_header = avi_write_header, .write_header = avi_write_header,
.write_packet = avi_write_packet, .write_packet = avi_write_packet,
......
...@@ -44,7 +44,7 @@ do_audio_only() ...@@ -44,7 +44,7 @@ do_audio_only()
} }
if [ -n "$do_avi" ] ; then if [ -n "$do_avi" ] ; then
do_lavf avi do_lavf avi "-acodec mp2"
fi fi
if [ -n "$do_asf" ] ; then if [ -n "$do_asf" ] ; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment