diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-03-05 05:41:49 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-03-05 05:41:49 +0300 |
commit | 7205395b683c05dbc99dc7148817f2cff74be96d (patch) | |
tree | d6f0c874ea20fd611e009555c91ca261b9d73b34 /libavformat/asf-enc.c | |
parent | 737287f802e80a3f616cf424de5dd1b102b57a1c (diff) |
create codec_comment_header which looks more like what M$ creates, sane or not ...
Originally committed as revision 8240 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/asf-enc.c')
-rw-r--r-- | libavformat/asf-enc.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/libavformat/asf-enc.c b/libavformat/asf-enc.c index fa17ebbc73..6c0ec59be8 100644 --- a/libavformat/asf-enc.c +++ b/libavformat/asf-enc.c @@ -428,8 +428,17 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size, int64_t data 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 */ |