summaryrefslogtreecommitdiff
path: root/libavformat/riffenc.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/riffenc.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/riffenc.c')
-rw-r--r--libavformat/riffenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/riffenc.c b/libavformat/riffenc.c
index 8701358e51..66c0ff29d6 100644
--- a/libavformat/riffenc.c
+++ b/libavformat/riffenc.c
@@ -31,7 +31,7 @@
int64_t ff_start_tag(AVIOContext *pb, const char *tag)
{
ffio_wfourcc(pb, tag);
- avio_wl32(pb, 0);
+ avio_wl32(pb, -1);
return avio_tell(pb);
}