[vlc-commits] avformat:demux: fix copy-paste error

Steve Lhomme git at videolan.org
Wed Sep 26 10:53:50 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Sep 26 10:53:02 2018 +0200| [39b5b61a83d7cf240315044267a56ccd90c2bfe4] | committer: Steve Lhomme

avformat:demux: fix copy-paste error

CID #1439687

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

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

diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index a270110b64..92e324bf3f 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -831,7 +831,7 @@ static int Demux( demux_t *p_demux )
         p_frame->i_pts = VLC_TICK_INVALID;
     else
     {
-        p_frame->i_pts = vlc_tick_from_frac( pkt.dts * p_stream->time_base.num, p_stream->time_base.den )
+        p_frame->i_pts = vlc_tick_from_frac( pkt.pts * p_stream->time_base.num, p_stream->time_base.den )
                 - i_start_time + VLC_TICK_0;
     }
     if( pkt.duration > 0 && p_frame->i_length <= 0 )



More information about the vlc-commits mailing list