[vlc-commits] demux: ogg: always set rate on delayed/old flaC
Francois Cartegnie
git at videolan.org
Thu May 31 18:47:57 CEST 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed May 30 17:40:49 2018 +0200| [47b7140a14fc121e996722526bb4c8c8245d18ed] | committer: Francois Cartegnie
demux: ogg: always set rate on delayed/old flaC
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=47b7140a14fc121e996722526bb4c8c8245d18ed
---
modules/demux/ogg.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index ec484950d1..cfeb239974 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -1617,6 +1617,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;
+ date_Init( &p_stream->dts, 48000, 1 ); /* 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