summaryrefslogtreecommitdiffstats
path: root/libhb/decssasub.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/decssasub.c')
-rw-r--r--libhb/decssasub.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libhb/decssasub.c b/libhb/decssasub.c
index 8d0a9995d..b0ed845d5 100644
--- a/libhb/decssasub.c
+++ b/libhb/decssasub.c
@@ -50,6 +50,8 @@ typedef enum {
sec * 1000L +\
centi * 10L ) )
+#define SSA_VERBOSE_PACKETS 0
+
static StyleSet ssa_parse_style_override( uint8_t *pos, StyleSet prevStyles )
{
StyleSet nextStyles = prevStyles;
@@ -592,6 +594,10 @@ static int decssaWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
hb_buffer_t * in = *buf_in;
hb_buffer_t * out_list = NULL;
+#if SSA_VERBOSE_PACKETS
+ printf("\nPACKET(%"PRId64",%"PRId64"): %.*s\n", in->start/90, in->stop/90, in->size, in->data);
+#endif
+
if ( in->size > 0 ) {
out_list = ssa_decode_packet(w, in);
} else {