shithub: libdvdcss

Download patch

ref: 3c3fb43d6e7b925339b8172163ce4a0d4fd430da
parent: 9fe737f5bb0ea4edf45723c2eaf2873c1312da70
author: Diego Biurrun <diego@biurrun.de>
date: Fri Oct 24 23:00:05 EDT 2014

libdvdcss: Drop unnecessary void* pointer casts

--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -681,7 +681,7 @@
                                            int i_blocks,
                                            int i_flags )
 {
-    struct iovec *_p_iovec = (struct iovec *)p_iovec;
+    struct iovec *_p_iovec = p_iovec;
     int i_ret, i_index;
     void *iov_base;
     size_t iov_len;
@@ -718,7 +718,7 @@
         dvdcss_unscramble( dvdcss->css.p_title_key, iov_base );
         ((uint8_t*)iov_base)[0x14] &= 0x8f;
 
-        iov_base = (void *) ((uint8_t*)iov_base + DVDCSS_BLOCK_SIZE);
+        iov_base = (uint8_t*)iov_base + DVDCSS_BLOCK_SIZE;
         iov_len -= DVDCSS_BLOCK_SIZE;
     }