[MPlayer-cvslog] r25066 - trunk/stream/stream_dvd.c

reimar subversion at mplayerhq.hu
Sat Nov 17 19:22:42 CET 2007


Author: reimar
Date: Sat Nov 17 19:22:42 2007
New Revision: 25066

Log:
AV_WB16(..., 1000) more obviously represents one second that assigning
0x03 and 0xe8 (0x3e8 = 1000).


Modified:
   trunk/stream/stream_dvd.c

Modified: trunk/stream/stream_dvd.c
==============================================================================
--- trunk/stream/stream_dvd.c	(original)
+++ trunk/stream/stream_dvd.c	Sat Nov 17 19:22:42 2007
@@ -110,8 +110,9 @@ static void dvd_set_speed(char *device, 
   AV_WB32(buffer + 12, speed);
   AV_WB32(buffer + 20, speed);
 
-  buffer[18] = buffer[26] = 0x03; /* 1 second */
-  buffer[19] = buffer[27] = 0xe8;
+  /* 1 second */
+  AV_WB16(buffer + 18, 1000);
+  AV_WB16(buffer + 26, 1000);
 
   if (ioctl(fd, SG_IO, &sghdr) < 0) {
     mp_msg(MSGT_OPEN, MSGL_INFO, MSGTR_DVDlimitFail);



More information about the MPlayer-cvslog mailing list