diff options
author | van <[email protected]> | 2008-06-03 17:20:03 +0000 |
---|---|---|
committer | van <[email protected]> | 2008-06-03 17:20:03 +0000 |
commit | aaf1354a3a4e07edb4416df53e66126aaebe89fb (patch) | |
tree | 26492bbd29b709045f83979a0012f5b9732866c7 | |
parent | a7b844213c522cbde2fafde8ba295606ef37a1c6 (diff) |
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
-rw-r--r-- | libhb/decmpeg2.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |