[vlc-commits] [Git][videolan/vlc][master] demux: ogg: set source rate instead of decoded rate
Rémi Denis-Courmont (@Courmisch)
gitlab at videolan.org
Fri Sep 30 19:53:29 UTC 2022
Rémi Denis-Courmont pushed to branch master at VideoLAN / VLC
Commits:
251455ff by Francois Cartegnie at 2022-09-30T19:37:52+00:00
demux: ogg: set source rate instead of decoded rate
- - - - -
1 changed file:
- modules/demux/ogg.c
Changes:
=====================================
modules/demux/ogg.c
=====================================
@@ -2887,10 +2887,8 @@ static void Ogg_ReadOpusHeader( logical_stream_t *p_stream,
/* All OggOpus streams are timestamped at 48kHz and
* can be played at 48kHz. */
- p_stream->fmt.audio.i_rate = 48000;
- date_Init( &p_stream->dts, p_stream->fmt.audio.i_rate, 1 );
+ date_Init( &p_stream->dts, 48000, 1 );
p_stream->fmt.i_bitrate = 0;
-
/* Cheat and get additional info ;) */
oggpack_readinit( &opb, p_oggpacket->packet, p_oggpacket->bytes);
oggpack_adv( &opb, 64 );
@@ -2898,7 +2896,8 @@ static void Ogg_ReadOpusHeader( logical_stream_t *p_stream,
{
p_stream->fmt.audio.i_channels = oggpack_read( &opb, 8 );
p_stream->i_pre_skip = oggpack_read( &opb, 16 );
- oggpack_adv( &opb, 48 );
+ p_stream->fmt.audio.i_rate = oggpack_read( &opb, 32 );
+ oggpack_adv( &opb, 16 );
switch( oggpack_read( &opb, 8 ) ) /* mapping family */
{
case 0: /* RFC7587 */
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/251455ffdd9bc719eb6593c2972df01f732ccdd5
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/251455ffdd9bc719eb6593c2972df01f732ccdd5
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