summaryrefslogtreecommitdiff
path: root/libavformat/wavenc.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2014-05-03 20:18:13 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-05-03 22:21:00 +0200
commitc2b0ce70add2a7dd6e792341c21278cb94820684 (patch)
tree567d1ba7540a8a9db1bcf0a6d23f5a9bb8c8ed63 /libavformat/wavenc.c
parent5918c5a4ccd7433956fc51a233126ac7da64aabc (diff)
downloadffmpeg-c2b0ce70add2a7dd6e792341c21278cb94820684.tar.gz
Initialize riff and wav size fields to -1 instead of 0.
WMP doess not play the output files if the fields are set to 0 and not overwritten (using pipe output). Fixes ticket #3346.
Diffstat (limited to 'libavformat/wavenc.c')
-rw-r--r--libavformat/wavenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/wavenc.c b/libavformat/wavenc.c
index 0ddd218343..c892c7b34d 100644
--- a/libavformat/wavenc.c
+++ b/libavformat/wavenc.c
@@ -126,7 +126,7 @@ static int wav_write_header(AVFormatContext *s)
avio_wl32(pb, -1); /* RF64 chunk size: use size in ds64 */
} else {
ffio_wfourcc(pb, "RIFF");
- avio_wl32(pb, 0); /* file length */
+ avio_wl32(pb, -1); /* file length */
}
ffio_wfourcc(pb, "WAVE");