summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2012-04-28 14:23:43 +0000
committerjstebbins <[email protected]>2012-04-28 14:23:43 +0000
commitf2e4cb9727412a6f50f6be725ffb59695a85700b (patch)
tree04c9784c48d5957d9d5707533817481929a8b394 /libhb
parenta984cc1333479a325c23f988507764cbd1845175 (diff)
Fix a potential null pointer reference
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4609 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r--libhb/dvd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/dvd.c b/libhb/dvd.c
index f2e0ffeb3..bd167e775 100644
--- a/libhb/dvd.c
+++ b/libhb/dvd.c
@@ -267,7 +267,7 @@ static hb_title_t * hb_dvdread_title_scan( hb_dvd_t * e, int t, uint64_t min_dur
hb_log("pgc_id: %d, pgn: %d: pgc: %p", pgc_id, pgn, d->pgc);
- if( !d->pgc )
+ if( !d->pgc || !d->pgc->program_map )
{
hb_error( "scan: pgc not valid, skipping" );
goto fail;