Commit 87da5eba authored by Diego Biurrun's avatar Diego Biurrun
Browse files

ioctl: Replace magic number by DVDCSS_BLOCK_SIZE macro

parent 37adce9c
......@@ -83,8 +83,8 @@
# include <sys/dcmd_cam.h>
#endif
#include "dvdcss/dvdcss.h"
#include "common.h"
#include "ioctl.h"
/*****************************************************************************
......@@ -491,7 +491,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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment