pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

intel-vaapi-driver: adjust patch-src_i965__decoder__utils.c to upstream version



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Fri Mar 10 14:09:02 2017 +0100
Changeset:	fc10e7fd96a48e16876417b8ea9221c4ba94b9cd

Modified Files:
	intel-vaapi-driver/distinfo
	intel-vaapi-driver/patches/patch-src_i965__decoder__utils.c

Log Message:
intel-vaapi-driver: adjust patch-src_i965__decoder__utils.c to upstream version

No need to check possible NULL pointer in free(3). While here also update the
comment in the patch indicating that it will not needed for the next stable
version.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=fc10e7fd96a48e16876417b8ea9221c4ba94b9cd

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 intel-vaapi-driver/distinfo                                 | 2 +-
 intel-vaapi-driver/patches/patch-src_i965__decoder__utils.c | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs:
diff --git a/intel-vaapi-driver/distinfo b/intel-vaapi-driver/distinfo
index e0c49f4f72..2334950620 100644
--- a/intel-vaapi-driver/distinfo
+++ b/intel-vaapi-driver/distinfo
@@ -4,4 +4,4 @@ SHA1 (intel-vaapi-driver-1.7.3.tar.gz) = f2f412edc9d03567897b187d96343db68598fa3
 RMD160 (intel-vaapi-driver-1.7.3.tar.gz) = 2ba7c3d945733bf56f234fc5451422173a612f1d
 SHA512 (intel-vaapi-driver-1.7.3.tar.gz) = 57ae4fbf1bd5799e8a311fcd67eda1a8a6d5b5267df502b83f63f8bd0cdd510a4f78b4d09088833bfa2e98447d841c3d4e7229f4e75a9d9f4b8096fb14027878
 Size (intel-vaapi-driver-1.7.3.tar.gz) = 1648659 bytes
-SHA1 (patch-src_i965__decoder__utils.c) = a656843fb981a1dd1b2592ef5a7aace589ea550a
+SHA1 (patch-src_i965__decoder__utils.c) = 1719cac7ee434c92e1a7016ad4130615dd62ddaa
diff --git a/intel-vaapi-driver/patches/patch-src_i965__decoder__utils.c b/intel-vaapi-driver/patches/patch-src_i965__decoder__utils.c
index ef208441d3..ea964a4d1d 100644
--- a/intel-vaapi-driver/patches/patch-src_i965__decoder__utils.c
+++ b/intel-vaapi-driver/patches/patch-src_i965__decoder__utils.c
@@ -2,7 +2,8 @@ $NetBSD$
 
 Use malloc(3) and free(3) instead of alloca(3).
 
-Suggested by upstream via issue pull request #77.
+From upstream via issue pull request #77 (it will not needed
+for the next 1.8.0 version).
 
 --- src/i965_decoder_utils.c.orig	2016-11-10 05:04:36.000000000 +0000
 +++ src/i965_decoder_utils.c
@@ -23,12 +24,11 @@ Suggested by upstream via issue pull request #77.
      ret = dri_bo_get_subdata(
          slice_data_bo, slice_param->slice_data_offset,
          buf_size, buf
-@@ -355,6 +354,9 @@ avc_get_first_mb_bit_offset_with_epb(
+@@ -355,6 +354,8 @@ avc_get_first_mb_bit_offset_with_epb(
              i += 2, j++, n++;
      }
  
-+    if (buf)
-+        free(buf);
++    free(buf);
 +
      out_slice_data_bit_offset = in_slice_data_bit_offset + n * 8;
  


Home | Main Index | Thread Index | Old Index