View | Details | Raw Unified | Return to bug 107468
Collapse All | Expand All

(-)patch-src::dvdbackup.c (+10 lines)
Lines 19-24 Link Here
19
 	fprintf(stderr,"\t-a is option to the -F switch and has no effect on other options\n");
19
 	fprintf(stderr,"\t-a is option to the -F switch and has no effect on other options\n");
20
 	fprintf(stderr,"\t-s and -e should prefereibly be used together with -t \n\n");
20
 	fprintf(stderr,"\t-s and -e should prefereibly be used together with -t \n\n");
21
 	exit(1);
21
 	exit(1);
22
@@ -228,7 +228,8 @@
23
 }
24
 
25
 int CheckSizeArray(const int size_array[], int reference, int target) {
26
-	if ( (size_array[reference]/size_array[target] == 1) &&
27
+	if ( size_array[target] &&
28
+	     (size_array[reference]/size_array[target] == 1) &&
29
 	     ((size_array[reference] * 2 - size_array[target])/ size_array[target] == 1) &&
30
 	     ((size_array[reference]%size_array[target] * 3) < size_array[reference]) ) {
31
 		/* We have a dual DVD with two feature films - now lets see if they have the same amount of chapters*/
22
@@ -782,7 +783,7 @@
32
@@ -782,7 +783,7 @@
23
 	 to consider the second one a feature title we are doing two checks (biggest  + biggest - second) /second == 1
33
 	 to consider the second one a feature title we are doing two checks (biggest  + biggest - second) /second == 1
24
 	 and biggest%second * 3 < biggest */
34
 	 and biggest%second * 3 < biggest */

Return to bug 107468