OSDN Git Service

Don't crash while scanning when we can't get previews for some title.
authorvan <van@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 29 Feb 2008 18:33:45 +0000 (18:33 +0000)
committervan <van@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 29 Feb 2008 18:33:45 +0000 (18:33 +0000)
commit124d5ac74aaed2ac45b581bb1f4efeb39dac7cab
tree014eb6e2239a6106619c7dc899632acc93e7cf15
parent22f850298966c5c90ea3bdd6c8818259b216849f
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://localhost/HandBrake/trunk@1322 b64f7644-9d1e-0410-96f1-a4d463321fa5
libhb/common.c
libhb/decmpeg2.c
libhb/internal.h
libhb/scan.c