diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-04-04 20:00:04 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-04-04 20:00:04 +0000 |
commit | 5062c202e23246ac630f51be616f3c0d446807e5 (patch) | |
tree | cd1d8206f651d13c0623952ad413a2f4f4898d26 /libavformat/wav.c | |
parent | 6748046eaadfea0e5dfcc651dab870ab9ff4a6e4 (diff) | |
download | ffmpeg-streaming-5062c202e23246ac630f51be616f3c0d446807e5.zip ffmpeg-streaming-5062c202e23246ac630f51be616f3c0d446807e5.tar.gz |
10l
Originally committed as revision 2963 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/wav.c')
-rw-r--r-- | libavformat/wav.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/wav.c b/libavformat/wav.c index 7588baf..495ae0f 100644 --- a/libavformat/wav.c +++ b/libavformat/wav.c @@ -109,6 +109,10 @@ int put_wav_header(ByteIOContext *pb, AVCodecContext *enc) put_le16(pb, enc->extradata_size); put_buffer(pb, enc->extradata, enc->extradata_size); hdrsize += enc->extradata_size; + if(hdrsize&1){ + hdrsize++; + put_byte(pb, 0); + } } return hdrsize; |