[vlc-commits] access: bluray: align read size to cluster size

Francois Cartegnie git at videolan.org
Tue Oct 30 18:12:45 CET 2018


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Oct 23 12:20:13 2018 +0200| [7b69f2bec60a53121dcd6bc569b4243b2e502f34] | committer: Francois Cartegnie

access: bluray: align read size to cluster size

(cherry picked from commit b9dbc6e2f77b11cf29b02602fb3a63cbbb0529cb)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=7b69f2bec60a53121dcd6bc569b4243b2e502f34
---

 modules/access/bluray.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index a0c9c15f1c..4970c6da51 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -91,6 +91,9 @@ static const char *const ppsz_region_code_text[] = {
 # define BD_STREAM_TYPE_VIDEO_HEVC 0x24
 #endif
 
+#define BD_CLUSTER_SIZE 6144
+#define BD_READ_SIZE    (10 * BD_CLUSTER_SIZE)
+
 /* Callbacks */
 static int  blurayOpen (vlc_object_t *);
 static void blurayClose(vlc_object_t *);
@@ -2708,10 +2711,6 @@ static int onIntfEvent( vlc_object_t *p_input, char const *psz_var,
     return VLC_SUCCESS;
 }
 
-#define BD_TS_PACKET_SIZE (192)
-#define NB_TS_PACKETS (200)
-#define BD_READ_SIZE (NB_TS_PACKETS * BD_TS_PACKET_SIZE)
-
 static int blurayDemux(demux_t *p_demux)
 {
     demux_sys_t *p_sys = p_demux->p_sys;



More information about the vlc-commits mailing list