From c2b0ce70add2a7dd6e792341c21278cb94820684 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Sat, 3 May 2014 20:18:13 +0200 Subject: 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. --- libavformat/riffenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/riffenc.c') 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); } -- cgit v1.2.3