[vlc-commits] [Git][videolan/vlc][master] demux: ogg: fix off by one streamid in debug

Steve Lhomme (@robUx4) gitlab at videolan.org
Tue Sep 1 09:26:53 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
35e48e56 by François Cartegnie at 2026-09-01T09:11:46+00:00
demux: ogg: fix off by one streamid in debug

- - - - -


1 changed file:

- modules/demux/ogg.c


Changes:

=====================================
modules/demux/ogg.c
=====================================
@@ -2002,7 +2002,7 @@ static int Ogg_ConfigureStream( demux_t *p_demux, ogg_packet oggpacket, logical_
                     else
                     {
                         msg_Dbg( p_demux, "stream %d has an old header "
-                            "but is of an unknown type", p_ogg->i_streams-1 );
+                            "but is of an unknown type", p_ogg->i_streams );
                         return VLC_EGENERIC;
                     }
                 }
@@ -2154,7 +2154,7 @@ static int Ogg_ConfigureStream( demux_t *p_demux, ogg_packet oggpacket, logical_
                     else
                     {
                         msg_Dbg( p_demux, "stream %d has a header marker "
-                            "but is of an unknown type", p_ogg->i_streams-1 );
+                            "but is of an unknown type", p_ogg->i_streams );
                         return VLC_EGENERIC;
                     }
                 }
@@ -2164,7 +2164,7 @@ static int Ogg_ConfigureStream( demux_t *p_demux, ogg_packet oggpacket, logical_
                 {
                     /* Skeleton */
                     msg_Dbg( p_demux, "stream %d is a skeleton",
-                                p_ogg->i_streams-1 );
+                                p_ogg->i_streams );
                     Ogg_ReadSkeletonHeader( p_demux, p_stream, &oggpacket );
                 }
                 /* Check for OggSpots header */



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/35e48e569e252eb12552c7f90dbd753a41b9bb30
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list