[libbluray-devel] Avoid undefined values in DISC_INFO
hpi1
git at videolan.org
Mon Feb 8 11:02:58 CET 2016
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Feb 8 11:59:39 2016 +0200| [a004863ffedcba8e9415691729ce5b0969b75276] | committer: hpi1
Avoid undefined values in DISC_INFO
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=a004863ffedcba8e9415691729ce5b0969b75276
---
src/libbluray/disc/dec.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/libbluray/disc/dec.c b/src/libbluray/disc/dec.c
index 635e83b..1c8a601 100644
--- a/src/libbluray/disc/dec.c
+++ b/src/libbluray/disc/dec.c
@@ -179,6 +179,8 @@ static int _libaacs_init(BD_DEC *dec, struct dec_dev *dev,
int result;
const uint8_t *disc_id;
+ memset(i, 0, sizeof(*i));
+
libaacs_unload(&dec->aacs);
i->aacs_detected = libaacs_required((void*)dev, _bdrom_have_file);
More information about the libbluray-devel
mailing list