diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-04-04 19:28:49 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-04-04 19:28:49 +0000 |
commit | 6748046eaadfea0e5dfcc651dab870ab9ff4a6e4 (patch) | |
tree | 08b82faa3874332a9f477af3a1bd3391a76c44dc /libavformat/wav.c | |
parent | 2926db54ba2a9f337aac9d2cfdc606f68bf02d7f (diff) | |
download | ffmpeg-streaming-6748046eaadfea0e5dfcc651dab870ab9ff4a6e4.zip ffmpeg-streaming-6748046eaadfea0e5dfcc651dab870ab9ff4a6e4.tar.gz |
store extradata, vorbis in avi works now, dont expect av sync though
Originally committed as revision 2962 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/wav.c')
-rw-r--r-- | libavformat/wav.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libavformat/wav.c b/libavformat/wav.c index e8c5b44..7588baf 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; } |