[vlc-commits] [Git][videolan/vlc][master] demux: mpeg: ts: fix empty AF skipping size

Steve Lhomme (@robUx4) gitlab at videolan.org
Mon Sep 8 11:58:45 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
f51fe166 by François Cartegnie at 2025-09-08T11:37:00+00:00
demux: mpeg: ts: fix empty AF skipping size

regression by 581d8653843dc2bc123062cd2e3ab93357b43b5a

- - - - -


1 changed file:

- modules/demux/mpeg/ts_packet.h


Changes:

=====================================
modules/demux/mpeg/ts_packet.h
=====================================
@@ -33,7 +33,7 @@ static inline unsigned PKTHeaderAndAFSize( const block_t *p_pkt )
 {
     const uint8_t *p = p_pkt->p_buffer;
     unsigned i_size = 4;
-    if ( p[3] & 0x30 ) // adaptation field
+    if ( p[3] & 0x20 ) // adaptation field
         i_size += 1 + __MIN(p[4], 182);
     return i_size;
 }



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f51fe166d6f6a42a23c9d3ccb6c802b7a11a2b36

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f51fe166d6f6a42a23c9d3ccb6c802b7a11a2b36
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list