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

Francois Cartegnie git at videolan.org
Tue Oct 23 15:41:12 CEST 2018


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

access: bluray: align read size to cluster size

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

 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 32831d4338..19ad5b485a 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -159,6 +159,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 *);
@@ -2829,10 +2832,6 @@ static void blurayHandleOverlays(demux_t *p_demux, int nread)
     vlc_mutex_unlock(&p_sys->bdj_overlay_lock);
 }
 
-#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