changeset 25038:b2ae4a355a54

AV_WB16(..., 1000) more obviously represents one second that assigning 0x03 and 0xe8 (0x3e8 = 1000).
author reimar
date Sat, 17 Nov 2007 18:22:42 +0000
parents ee99e07b2139
children b16e023e5751
files stream/stream_dvd.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_dvd.c	Sat Nov 17 18:20:04 2007 +0000
+++ b/stream/stream_dvd.c	Sat Nov 17 18:22:42 2007 +0000
@@ -110,8 +110,9 @@
   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);