From 6748046eaadfea0e5dfcc651dab870ab9ff4a6e4 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 4 Apr 2004 19:28:49 +0000 Subject: [PATCH] store extradata, vorbis in avi works now, dont expect av sync though Originally committed as revision 2962 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/wav.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libavformat/wav.c b/libavformat/wav.c index e8c5b44e39..7588baf265 100644 --- a/libavformat/wav.c +++ b/libavformat/wav.c @@ -105,8 +105,11 @@ int put_wav_header(ByteIOContext *pb, AVCodecContext *enc) 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; }