OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb01a3f
)
Correcting the header size for ADPCM_IMA_WAV files patch by (Brian Becker <brian...
author
Brian Becker
<brian.becker@palmone.com>
Wed, 10 Mar 2004 03:54:56 +0000
(
03:54
+0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 10 Mar 2004 03:54:56 +0000
(
03:54
+0000)
Originally committed as revision 2867 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/wav.c
patch
|
blob
|
history
diff --git
a/libavformat/wav.c
b/libavformat/wav.c
index
787c7d5
..
1beb735
100644
(file)
--- a/
libavformat/wav.c
+++ b/
libavformat/wav.c
@@
-102,6
+102,7
@@
int put_wav_header(ByteIOContext *pb, AVCodecContext *enc)
put_le32(pb, 0); /* dwPTSHigh */
} else if (enc->codec_id == CODEC_ID_ADPCM_IMA_WAV) {
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 */