[vlc-commits] demux: timestamps_filter: fix some debug format strings

Francois Cartegnie git at videolan.org
Thu Jan 16 22:45:06 CET 2020


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Jan 16 09:20:28 2020 +0100| [7414eb1ae9a3f1e6c79c12a3bfe5915a6f98656e] | committer: Francois Cartegnie

demux: timestamps_filter: fix some debug format strings

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

 modules/demux/timestamps_filter.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/demux/timestamps_filter.h b/modules/demux/timestamps_filter.h
index 2b8f0112b0..b1ede95c47 100644
--- a/modules/demux/timestamps_filter.h
+++ b/modules/demux/timestamps_filter.h
@@ -113,7 +113,8 @@ static bool timestamps_filter_push(const char *s, struct timestamps_filter_s *tf
 #ifdef DEBUG_TIMESTAMPS_FILTER
         vlc_tick_t next = prev->dts + mva_get(&tf->mva);
 
-        printf("%4.4s expected %ld / %ld , prev %ld+%ld error %ld comp %ld\n",
+        printf("%4.4s expected %" PRId64 " / %" PRId64 " , prev %" PRId64 "+%" PRId64
+               " error %lld comp %" PRId64 "\n",
                s, next, i_dts, prev->dts, mva_get(&tf->mva),
                b_contiguous ? llabs(i_dts - next): 0, i_dts + tf->sequence_offset);
 #else
@@ -257,7 +258,7 @@ static int timestamps_filter_es_out_Send(es_out_t *out, es_out_id_t *id, block_t
             if(i_offsetdiff != 0)
                 cur->tf.sequence_offset -= i_offsetdiff;
 #ifdef DEBUG_TIMESTAMPS_FILTER
-            printf("    ^ diff pcr %ld off %ld ********** pcrnum %ld seq %d/%d\n",
+            printf("    ^ diff pcr %" PRId64 " off %" PRId64 " ********** pcrnum %u seq %u/%u\n",
                    cur->pcrdiff, i_offsetdiff, p_sys->pcrtf.mva.i_packet,
                    cur->tf.sequence, p_sys->pcrtf.sequence);
 #endif



More information about the vlc-commits mailing list