[libdvdcss-devel] [PATCH 16/47] ioctl: Replace magic number by DVDCSS_BLOCK_SIZE macro

Diego Biurrun <[email protected]>
Newsgroups gmane.comp.video.videolan.libdvdcss,gmane.comp.video.videolan.libdvdcss.devel
Message-ID <[email protected]>
---
 src/ioctl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/ioctl.c b/src/ioctl.c
index c33ea66..442f91b 100644
--- a/src/ioctl.c
+++ b/src/ioctl.c
@@ -83,8 +83,8 @@
 #   include <sys/dcmd_cam.h>
 #endif
 
+#include "dvdcss/dvdcss.h"
 #include "common.h"
-
 #include "ioctl.h"
 
 /*****************************************************************************
@@ -454,7 +454,7 @@ int ioctl_ReadTitleKey( int i_fd, int *pi_agid, int i_pos, uint8_t *p_key )
     key->KeyType    = DvdTitleKey;
     key->KeyFlags   = 0;
     key->Parameters.TitleOffset.QuadPart = (LONGLONG) i_pos *
-                                               2048 /*DVDCSS_BLOCK_SIZE*/;
+                                           DVDCSS_BLOCK_SIZE;
 
     i_ret = DeviceIoControl( (HANDLE) i_fd, IOCTL_DVD_READ_KEY, key,
             key->KeyLength, key, key->KeyLength, &tmp, NULL ) ? 0 : -1;
-- 
1.9.1

_______________________________________________
libdvdcss-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/libdvdcss-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.