demux: ts: fix reading ttml descriptor
authorFrancois Cartegnie <fcvlcdev@free.fr>
Tue, 16 Jun 2020 09:24:52 +0000 (11:24 +0200)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Tue, 16 Jun 2020 12:25:18 +0000 (14:25 +0200)
refs #24871

modules/demux/mpeg/ts_psi.c

index c93d066..dbdec34 100644 (file)
@@ -739,8 +739,8 @@ static void SetupTTMLExtendedDescriptor( demux_t *p_demux,
     {
         if( i_data <= 1U || i_data <= 1U + p_data[0] )
             goto end;
-        p_data += 1 + p_data[0];
         i_data -= 1 + p_data[0];
+        p_data += 1 + p_data[0];
     }
 
     /* text... finally */