summaryrefslogtreecommitdiffstats
path: root/libhb/internal.h
diff options
context:
space:
mode:
authorvan <[email protected]>2008-02-29 18:33:45 +0000
committervan <[email protected]>2008-02-29 18:33:45 +0000
commitba78192db9012c547bf78d3ef855fe473a7fb46f (patch)
tree014eb6e2239a6106619c7dc899632acc93e7cf15 /libhb/internal.h
parent10c233da4008525393ed7552a49de1008f64b7b3 (diff)
Don't crash while scanning when we can't get previews for some title.
- if we get no previews for some title, ignore the title - use the most common aspect ratio found from our 10 previews rather than just the aspect of preview 2 (otherwise we'll crash in hb_fix_aspect if we don't get preview 2). - check parameters in hb_fix_aspect so we don't divide by zero. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1322 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/internal.h')
-rw-r--r--libhb/internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libhb/internal.h b/libhb/internal.h
index bb111c2ad..8dfc3afac 100644
--- a/libhb/internal.h
+++ b/libhb/internal.h
@@ -112,6 +112,7 @@ int hb_libmpeg2_decode( hb_libmpeg2_t *,
void hb_libmpeg2_info( hb_libmpeg2_t * m, int * width,
int * height, int * rate, int * aspect_ratio );
void hb_libmpeg2_close( hb_libmpeg2_t ** );
+int hb_libmpeg2_clear_aspect_ratio( hb_libmpeg2_t * );
/***********************************************************************
* mpegdemux.c