From: van Date: Tue, 3 Jun 2008 17:20:03 +0000 (+0000) Subject: Don't crash in decmpeg2Info if we failed to get a preview due to not finding a sequen... X-Git-Tag: 0.9.3~456 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aaf1354a3a4e07edb4416df53e66126aaebe89fb;p=handbrake Don't crash in decmpeg2Info if we failed to get a preview due to not finding a sequence header. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1488 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/libhb/decmpeg2.c b/libhb/decmpeg2.c index e5fcdc56d..52abfb729 100644 --- a/libhb/decmpeg2.c +++ b/libhb/decmpeg2.c @@ -450,7 +450,7 @@ static int decmpeg2Info( hb_work_object_t *w, hb_work_info_t *info ) { hb_work_private_t *pv = w->private_data; - if ( pv && pv->libmpeg2 ) + if ( pv && pv->libmpeg2 && pv->libmpeg2->info && pv->libmpeg2->info->sequence ) { int aspect; hb_libmpeg2_t *m = pv->libmpeg2;