aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/wav.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-04-04 20:00:04 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-04-04 20:00:04 +0000
commit5062c202e23246ac630f51be616f3c0d446807e5 (patch)
treecd1d8206f651d13c0623952ad413a2f4f4898d26 /libavformat/wav.c
parent6748046eaadfea0e5dfcc651dab870ab9ff4a6e4 (diff)
downloadffmpeg-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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/wav.c b/libavformat/wav.c
index 7588baf265..495ae0f969 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;