ref: 87da5eba2a088334ad08059d30b2502c28cd9f19
parent: 37adce9c0ad13ed954c7f634ffc9197b9dfb167b
author: Diego Biurrun <diego@biurrun.de>
date: Fri Oct 24 07:02:39 EDT 2014
ioctl: Replace magic number by DVDCSS_BLOCK_SIZE macro
--- 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"
/*****************************************************************************
@@ -491,7 +491,7 @@
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;