[vlc-commits] Decklink: Fix format specifiers

Marvin Scholz git at videolan.org
Sun Oct 28 11:34:17 CET 2018


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Mon Oct 22 20:14:55 2018 +0200| [2d3590a264de20d65314fdc0b7d229253e822bad] | committer: Jean-Baptiste Kempf

Decklink: Fix format specifiers

The timescale (BMDTimeScale) and frameduration (BMDTimeValue) are
typedef'd as int64_t, therefore PRId64 should be used here.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 605de7fa69..ac8195f6be 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,



More information about the vlc-commits mailing list