diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-05-07 21:44:21 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-05-07 22:03:04 +0400 |
commit | 7deaa2b8bddfae5d3a7121a76ff31a098b85389f (patch) | |
tree | a6b860e75c94745d6fbed7f4e7c01677c5c804b9 /libavformat/riff.c | |
parent | 99119bdffe17ac8919f0f97ace61251ad4bc6a2a (diff) |
riffenc/ffmpeg: Fix stream copy
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/riff.c')
-rw-r--r-- | libavformat/riff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/riff.c b/libavformat/riff.c index cea8c1349a..a6359efb37 100644 --- a/libavformat/riff.c +++ b/libavformat/riff.c @@ -442,7 +442,7 @@ int ff_put_wav_header(AVIOContext *pb, AVCodecContext *enc) if(waveformatextensible) { /* write WAVEFORMATEXTENSIBLE extensions */ hdrsize += 22; avio_wl16(pb, riff_extradata - riff_extradata_start + 22); /* 22 is WAVEFORMATEXTENSIBLE size */ - avio_wl16(pb, enc->bits_per_coded_sample); /* ValidBitsPerSample || SamplesPerBlock || Reserved */ + avio_wl16(pb, bps); /* ValidBitsPerSample || SamplesPerBlock || Reserved */ avio_wl32(pb, enc->channel_layout); /* dwChannelMask */ avio_wl32(pb, enc->codec_tag); /* GUID + next 3 */ avio_wl32(pb, 0x00100000); |