mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
This commit is contained in:
parent
737287f802
commit
7205395b68
@ -428,7 +428,16 @@ 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);
|
||||
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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user