summaryrefslogtreecommitdiffstats
path: root/contrib/libdvdread/A00-volume-name.patch
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libdvdread/A00-volume-name.patch')
-rw-r--r--contrib/libdvdread/A00-volume-name.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/libdvdread/A00-volume-name.patch b/contrib/libdvdread/A00-volume-name.patch
new file mode 100644
index 000000000..af7018e7a
--- /dev/null
+++ b/contrib/libdvdread/A00-volume-name.patch
@@ -0,0 +1,12 @@
+diff -Naur libdvdread.orig/src/dvd_udf.c libdvdread/src/dvd_udf.c
+--- libdvdread.orig/src/dvd_udf.c 2009-01-08 14:57:10.000000000 -0800
++++ libdvdread/src/dvd_udf.c 2009-04-23 13:36:08.000000000 -0700
+@@ -928,7 +928,7 @@
+ if(GetUDFCache(device, PVDCache, 0, pvd))
+ return 1;
+
+- if(!UDFGetDescriptor( device, 1, pvd_buf, sizeof(pvd_buf)))
++ if(!UDFGetDescriptor( device, 1, pvd_buf, DVD_VIDEO_LB_LEN))
+ return 0;
+
+ memcpy(pvd->VolumeIdentifier, &pvd_buf[24], 32);