[vlc-commits] demux: ogg: always set rate on delayed/old flaC

Francois Cartegnie git at videolan.org
Fri Jun 1 15:43:06 CEST 2018


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed May 30 17:40:49 2018 +0200| [b6577010625ccc7146b3a84f1ef79c2c9cb97e7b] | committer: Francois Cartegnie

demux: ogg: always set rate on delayed/old flaC

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

 modules/demux/ogg.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index 7d791f196f..7506d83112 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -1671,6 +1671,7 @@ static int Ogg_FindLogicalStreams( demux_t *p_demux )
                     p_stream->b_force_backup = true;
                     p_stream->i_extra_headers_packets = 1;
                     p_stream->special.flac.b_old = true;
+                    p_stream->f_rate = 48000; /* better be safe since that's delayed */
                     es_format_Change( &p_stream->fmt, AUDIO_ES, VLC_CODEC_FLAC );
                 }
                 /* Check for Flac header (>= version 1.0.0) */



More information about the vlc-commits mailing list