aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
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
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')
-rw-r--r--libavformat/riffenc.c2
-rw-r--r--libavformat/wavenc.c2
2 files changed, 2 insertions, 2 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);
}
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");