[vlc-commits] demux: mp4: report current trun sample pos in debug

Francois Cartegnie git at videolan.org
Tue Jun 1 11:55:58 UTC 2021


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon May 31 14:46:30 2021 +0200| [ca7adc93ee444748671ea71c35abcc6d46850028] | committer: Hugo Beauzée-Luyssen

demux: mp4: report current trun sample pos in debug

(cherry picked from commit 2028c4b9cba36a56eb54264bb47819c8b2b3b797)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

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

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 631cff43b7..6cb9f5e4e7 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -4375,7 +4375,7 @@ static int FragDemuxTrack( demux_t *p_demux, mp4_track_t *p_track,
         msg_Dbg( p_demux, "tk(%i)=%"PRId64" mv=%"PRId64" pos=%"PRIu64, p_track->i_track_ID,
                  VLC_TS_0 + MP4_rescale( i_dts, p_track->i_timescale, CLOCK_FREQ ),
                  VLC_TS_0 + MP4_rescale( i_pts, p_track->i_timescale, CLOCK_FREQ ),
-                 p_track->context.i_trun_sample_pos );
+                 p_track->context.i_trun_sample_pos - i_read );
 #endif
         if ( p_track->p_es )
         {



More information about the vlc-commits mailing list