PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/media-video/lsdvd/files/lsdvd-0.16-usec.patch

http://github.com/stsquad/Gentoo-Overlay
Patch | 21 lines | 18 code | 3 blank | 0 comment | 0 complexity | 9c7e0a5852f616c4d9d57a870445605e MD5 | raw file
 1diff -uw lsdvd-0.16.orig/lsdvd.c lsdvd-0.16/lsdvd.c
 2--- lsdvd-0.16.orig/lsdvd.c	2006-03-02 14:48:11.000000000 +0100
 3+++ lsdvd-0.16/lsdvd.c	2008-05-18 13:58:15.000000000 +0200
 4@@ -92,7 +92,7 @@
 5 	ms += (((dt->second & 0xf0) >> 3) * 5 + (dt->second & 0x0f)) * 1000;
 6 
 7 	if(fps > 0)
 8-	ms += ((dt->frame_u & 0x30) >> 3) * 5 + (dt->frame_u & 0x0f) * 1000.0 / fps;
 9+	ms += (((dt->frame_u & 0x30) >> 3) * 5 + (dt->frame_u & 0x0f)) * 1000.0 / fps;
10 
11 	return ms;
12 }
13@@ -107,7 +107,7 @@
14 {
15 	double fps = frames_per_s[(dt->frame_u & 0xc0) >> 6];
16 
17-	pt->usec = pt->usec + ((dt->frame_u & 0x30) >> 3) * 5 + (dt->frame_u & 0x0f) * 1000.0 / fps;
18+	pt->usec = pt->usec + (((dt->frame_u & 0x30) >> 3) * 5 + (dt->frame_u & 0x0f)) * 1000.0 / fps;
19 	pt->second = pt->second + ((dt->second & 0xf0) >> 3) * 5 + (dt->second & 0x0f);
20 	pt->minute = pt->minute + ((dt->minute & 0xf0) >> 3) * 5 + (dt->minute & 0x0f);
21 	pt->hour = pt->hour + ((dt->hour &   0xf0) >> 3) * 5 + (dt->hour   & 0x0f);