[vlc-commits] demux: ogg: fix oggds frame interpolation (fix #20503)

Francois Cartegnie git at videolan.org
Thu May 24 12:14:48 CEST 2018


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu May 24 11:51:06 2018 +0200| [a4d62772e5badcda92ba1bc8c3dd65849bc0c007] | committer: Francois Cartegnie

demux: ogg: fix oggds frame interpolation (fix #20503)

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

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

diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index f616d1b921..7dcd78a946 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -1068,7 +1068,7 @@ static void Ogg_UpdatePCR( demux_t *p_demux, logical_stream_t *p_stream,
         {
             if( p_stream->i_previous_granulepos > 0 )
             {
-                p_stream->i_pcr = VLC_TS_0 + p_stream->i_previous_granulepos * CLOCK_FREQ / p_stream->f_rate;
+                p_stream->i_pcr = VLC_TS_0 + Oggseek_GranuleToAbsTimestamp( p_stream, ++p_stream->i_previous_granulepos, false );
                 p_stream->i_pcr += p_ogg->i_nzpcr_offset;
             }
             /* First frame in ogm can be -1 (0 0 -1 2 3 -1 5 ...) */



More information about the vlc-commits mailing list