matroskadec: make sure not to leave EbmlBin in an inconsistent state
authorAnton Khirnov <anton@khirnov.net>
Wed, 28 Dec 2016 12:15:14 +0000 (13:15 +0100)
committerSean McGovern <gseanmcg@gmail.com>
Thu, 5 Jan 2017 01:05:44 +0000 (20:05 -0500)
commit9026ec8aaf5fa19cb4fb266c16f608af0d863b2b
tree480383cd7ef0f87349ecc45069d6be6ab2aed0ba
parent9b1db2d33883c6ff3f8c7b2453146501ba14ca20
matroskadec: make sure not to leave EbmlBin in an inconsistent state

If a read fails, the current code will free the data but leave the size
non-zero. Make sure the size is zeroed in such a case.

CC: libav-stable@libav.org
Bug-Id: 1001
Found-By: Kamil Frankowicz
Signed-off-by: Sean McGovern <gseanmcg@gmail.com>
libavformat/matroskadec.c