[vlc-commits] demux: ogg: don't set oggds blockalign value

Francois Cartegnie git at videolan.org
Tue Jun 9 19:03:00 CEST 2020


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Jun  9 18:59:48 2020 +0200| [a3c218f109a29bf3d09da8652f1825d9babbd26c] | committer: Francois Cartegnie

demux: ogg: don't set oggds blockalign value

seems incorrect field and breaks decoders

refs #24799

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

 modules/demux/ogg.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index e8d855dd45..59c54840f0 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -2014,7 +2014,8 @@ static int Ogg_FindLogicalStreams( demux_t *p_demux )
                         int i_format_tag;
 
                         st->sh.audio.channels = GetWLE( &oggpacket.packet[1+44] );
-                        st->sh.audio.blockalign = GetWLE( &oggpacket.packet[1+48] );
+                        /* seems totally bogus
+                        st->sh.audio.blockalign = GetWLE( &oggpacket.packet[1+48] );*/
                         st->sh.audio.avgbytespersec = GetDWLE( &oggpacket.packet[1+52] );
 
                         es_format_Change( &p_stream->fmt, AUDIO_ES, 0 );



More information about the vlc-commits mailing list