[FFmpeg-devel] [PATCH]Do not use mp2 as default codec for asf

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Oct 5 22:56:11 CEST 2011


Hi!

I am not sure why mp2 could make sense as default codec for asf, but attached 
patch allows to play default asf files with WMP.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/asfenc.c b/libavformat/asfenc.c
index 109d283..e7e1d5c 100644
--- a/libavformat/asfenc.c
+++ b/libavformat/asfenc.c
@@ -911,7 +911,7 @@ AVOutputFormat ff_asf_stream_muxer = {
 #if CONFIG_LIBMP3LAME
     .audio_codec    = CODEC_ID_MP3,
 #else
-    .audio_codec    = CODEC_ID_MP2,
+    .audio_codec    = CODEC_ID_WMAV2,
 #endif
     .video_codec    = CODEC_ID_MSMPEG4V3,
     .write_header   = asf_write_stream_header,


More information about the ffmpeg-devel mailing list