HandBrake/HandBrake — pull request #8 by krakas (2012-02-17 10:31:20+00:00)
Title: Crash when scanning title with libdvdread

Hey Folks,

Just ran into this issue when scanning a DVD title that is 0 seconds long with libdvdread. Scanning with libdvdnav is NOT affected.
Bug is actually pretty simple, just a NULL pointer getting dereferenced without prior check.

The issue is always reproducible on latest Lion with current OSX handbrake release, as well as latest svn tree:
- start handbrake and make sure libdvdread is used: preferences, advanced, uncheck use libdvdnav,
- open any DVD source that has at least one 0 seconds long title (relatively common),
- the app crashes.

I can provide OSX crash reports on demand (too verbose for a pull request).

/kra