- Fix in CalculateDuration. Crash caused by end chapter dropdown menu not getting re-populated before calculate duration run. See:
http://forum.handbrake.fr/viewtopic.php?f=12&t=7050
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1683
b64f7644-9d1e-0410-96f1-
a4d463321fa5
\r
int position = start_chapter - 1;\r
\r
+ if (end_chapter > selectedTitle.Chapters.Count)\r
+ end_chapter = selectedTitle.Chapters.Count;\r
+\r
while (position != end_chapter)\r
{\r
TimeSpan dur = selectedTitle.Chapters[position].Duration;\r