lavf/webm_chunk: Use dyn_buf to write chunks
authorVignesh Venkatasubramanian <vigneshv@google.com>
Thu, 30 Apr 2015 18:34:44 +0000 (11:34 -0700)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 30 Apr 2015 19:25:09 +0000 (21:25 +0200)
commite2784a1d96608d5aa661483de9d8e80311deb80e
tree384d2466899f2f97a2ac5cbeb69ccc868f65cbdf
parent1fae26830797ac8e04afb0866aa6f3805e8e98e4
lavf/webm_chunk: Use dyn_buf to write chunks

Use dyn_duf to write chunks so that we create the actual chunk
file only after the entire chunk data is available. This will help
not confuse other software looking at the chunk file (e.g. a web
server) by seeing a zero length file when ffmpeg is writing into
it.

Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/webm_chunk.c