[vlc-devel] [PATCH] Decklink: Fix format specifiers

Marvin Scholz epirat07 at gmail.com
Mon Oct 22 20:14:55 CEST 2018


The timescale (BMDTimeScale) and frameduration (BMDTimeValue) are
typedef'd as int64_t, therefore PRId64 should be used here.
---
 modules/video_output/decklink.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/decklink.cpp b/modules/video_output/decklink.cpp
index 60f18044c1..38c7e54cff 100644
--- a/modules/video_output/decklink.cpp
+++ b/modules/video_output/decklink.cpp
@@ -504,7 +504,7 @@ static IDeckLinkDisplayMode * MatchDisplayMode(vout_display_t *vd,
                     if(i==0)
                     {
                         BMDFieldDominance field = htonl(p_mode->GetFieldDominance());
-                        msg_Dbg(vd, "Found mode '%4.4s': %s (%ldx%ld, %.3f fps, %4.4s, scale %ld dur %ld)",
+                        msg_Dbg(vd, "Found mode '%4.4s': %s (%ldx%ld, %.3f fps, %4.4s, scale %" PRId64 " dur %" PRId64 ")",
                                 (char*)&modenl, psz_mode_name,
                                 p_mode->GetWidth(), p_mode->GetHeight(),
                                 double(timescale) / frameduration,
-- 
2.19.1



More information about the vlc-devel mailing list