[Ffmpeg-cvslog] r8240 - trunk/libavformat/asf-enc.c
michael
subversion
Mon Mar 5 03:41:49 CET 2007
Author: michael
Date: Mon Mar 5 03:41:49 2007
New Revision: 8240
Modified:
trunk/libavformat/asf-enc.c
Log:
create codec_comment_header which looks more like what M$ creates, sane or not ...
Modified: trunk/libavformat/asf-enc.c
==============================================================================
--- trunk/libavformat/asf-enc.c (original)
+++ trunk/libavformat/asf-enc.c Mon Mar 5 03:41:49 2007
@@ -428,8 +428,17 @@ static int asf_write_header1(AVFormatCon
enc = s->streams[n]->codec;
p = avcodec_find_encoder(enc->codec_id);
- put_le16(pb, asf->streams[n].num);
- put_str16(pb, p ? p->name : enc->codec_name);
+ if(enc->codec_type == CODEC_TYPE_AUDIO)
+ put_le16(pb, 2);
+ else if(enc->codec_type == CODEC_TYPE_VIDEO)
+ put_le16(pb, 1);
+ else
+ put_le16(pb, -1);
+
+ if(enc->codec_id == CODEC_ID_WMAV2)
+ put_str16(pb, "Windows Media Audio V8");
+ else
+ put_str16(pb, p ? p->name : enc->codec_name);
put_le16(pb, 0); /* no parameters */
More information about the ffmpeg-cvslog
mailing list