Mercurial > libavformat.hg
changeset 412:459df3ed379e libavformat
store extradata, vorbis in avi works now, dont expect av sync though
author | michael |
---|---|
date | Sun, 04 Apr 2004 19:28:49 +0000 |
parents | 64c347065c1b |
children | 7e2da8312b7e |
files | wav.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/wav.c Sun Apr 04 19:18:15 2004 +0000 +++ b/wav.c Sun Apr 04 19:28:49 2004 +0000 @@ -105,8 +105,11 @@ put_le16(pb, 2); /* wav_extra_size */ hdrsize += 2; put_le16(pb, ((enc->block_align - 4 * enc->channels) / (4 * enc->channels)) * 8 + 1); /* wSamplesPerBlock */ - } else - put_le16(pb, 0); /* wav_extra_size */ + } else { + put_le16(pb, enc->extradata_size); + put_buffer(pb, enc->extradata, enc->extradata_size); + hdrsize += enc->extradata_size; + } return hdrsize; }