lavf/webm_chunk: Fix a memory leak.
authorVignesh Venkatasubramanian <vigneshv@google.com>
Thu, 30 Apr 2015 19:56:24 +0000 (12:56 -0700)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 30 Apr 2015 21:33:10 +0000 (23:33 +0200)
commitccb8f674995ded871ac725833b5efefce0ad63de
treefe39ccccbf4993187e4047733b225f09836cec47
parent5935513c0ed1563a654b2e40d053f824bae93e6b
lavf/webm_chunk: Fix a memory leak.

Fix a duplicate memory allocation. priv_data should be allocated
in line 64 call to avformat_alloc_output_context2 since we pass
the correct AVFormat to it. This removes the duplicate allocation.

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