Mercurial > libavformat.hg
changeset 1863:97b153836b82 libavformat
create codec_comment_header which looks more like what M$ creates, sane or not ...
author | michael |
---|---|
date | Mon, 05 Mar 2007 02:41:49 +0000 |
parents | 7ac4b32fd3fc |
children | 481b69e29b89 |
files | asf-enc.c |
diffstat | 1 files changed, 11 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/asf-enc.c Mon Mar 05 02:00:20 2007 +0000 +++ b/asf-enc.c Mon Mar 05 02:41:49 2007 +0000 @@ -428,8 +428,17 @@ 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 */