Commit 610f58e7 authored by michael's avatar michael

create codec_comment_header which looks more like what M$ creates, sane or not ...


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8240 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3527932d
...@@ -428,8 +428,17 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size, int64_t data ...@@ -428,8 +428,17 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size, int64_t data
enc = s->streams[n]->codec; enc = s->streams[n]->codec;
p = avcodec_find_encoder(enc->codec_id); p = avcodec_find_encoder(enc->codec_id);
put_le16(pb, asf->streams[n].num); if(enc->codec_type == CODEC_TYPE_AUDIO)
put_str16(pb, p ? p->name : enc->codec_name); 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 */ put_le16(pb, 0); /* no parameters */
......
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