[libbluray-devel] Fix reference to NULL pointer when there are no playmarks
john
git at videolan.org
Fri Feb 4 18:40:25 CET 2011
libbluray | branch: master | john <john at anonymous.org> | Fri Feb 4 09:36:20 2011 -0800| [e2b2c934c803fa6b2d3da7c91fdc0dfd650b4396] | committer: john
Fix reference to NULL pointer when there are no playmarks
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=e2b2c934c803fa6b2d3da7c91fdc0dfd650b4396
---
src/libbluray/bdnav/navigation.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/libbluray/bdnav/navigation.c b/src/libbluray/bdnav/navigation.c
index 19ae48e..2c33af3 100644
--- a/src/libbluray/bdnav/navigation.c
+++ b/src/libbluray/bdnav/navigation.c
@@ -380,7 +380,7 @@ _extrapolate_title(NAV_TITLE *title)
mark->number = ii;
}
title->chap_list.count = jj;
- if (prev->duration == 0) {
+ if (prev != NULL && prev->duration == 0) {
prev->duration = title->duration - prev->title_time;
}
}
More information about the libbluray-devel
mailing list