[FFmpeg-cvslog] lavfi/signature: fix -Wformat warnings raised by DJGPP

Clément Bœsch git at videolan.org
Wed Mar 29 17:10:04 EEST 2017


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Wed Mar 29 16:09:28 2017 +0200| [247d0339ca5ddab692aee49baf43cd1324466028] | committer: Clément Bœsch

lavfi/signature: fix -Wformat warnings raised by DJGPP

This was forgotten due to the non-gpl build used in 549045254.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=247d0339ca5ddab692aee49baf43cd1324466028
---

 libavfilter/signature_lookup.c | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/libavfilter/signature_lookup.c b/libavfilter/signature_lookup.c
index 5bc2904..871a10c 100644
--- a/libavfilter/signature_lookup.c
+++ b/libavfilter/signature_lookup.c
@@ -551,20 +551,27 @@ static MatchingInfo lookup_signatures(AVFilterContext *ctx, SignatureContext *sc
     if (find_next_coarsecandidate(sc, second->coarsesiglist, &cs, &cs2, 1) == 0)
         return bestmatch; /* no candidate found */
     do {
-        av_log(ctx, AV_LOG_DEBUG, "Stage 1: got coarsesignature pair. indices of first frame: %d and %d\n", cs->first->index, cs2->first->index);
+        av_log(ctx, AV_LOG_DEBUG, "Stage 1: got coarsesignature pair. "
+               "indices of first frame: %"PRIu32" and %"PRIu32"\n",
+               cs->first->index, cs2->first->index);
         /* stage 2: l1-distance and hough-transform */
         av_log(ctx, AV_LOG_DEBUG, "Stage 2: calculate matching parameters\n");
         infos = get_matching_parameters(ctx, sc, cs->first, cs2->first);
         if (av_log_get_level() == AV_LOG_DEBUG) {
             for (i = infos; i != NULL; i = i->next) {
-                av_log(ctx, AV_LOG_DEBUG, "Stage 2: matching pair at %d and %d, ratio %f, offset %d\n", i->first->index, i->second->index, i->framerateratio, i->offset);
+                av_log(ctx, AV_LOG_DEBUG, "Stage 2: matching pair at %"PRIu32" and %"PRIu32", "
+                       "ratio %f, offset %d\n", i->first->index, i->second->index,
+                       i->framerateratio, i->offset);
             }
         }
         /* stage 3: evaluation */
         av_log(ctx, AV_LOG_DEBUG, "Stage 3: evaluate\n");
         if (infos) {
             bestmatch = evaluate_parameters(ctx, sc, infos, bestmatch, mode);
-            av_log(ctx, AV_LOG_DEBUG, "Stage 3: best matching pair at %d and %d, ratio %f, offset %d, score %d, %d frames matching\n", bestmatch.first->index, bestmatch.second->index, bestmatch.framerateratio, bestmatch.offset, bestmatch.score, bestmatch.matchframes);
+            av_log(ctx, AV_LOG_DEBUG, "Stage 3: best matching pair at %"PRIu32" and %"PRIu32", "
+                   "ratio %f, offset %d, score %d, %d frames matching\n",
+                   bestmatch.first->index, bestmatch.second->index,
+                   bestmatch.framerateratio, bestmatch.offset, bestmatch.score, bestmatch.matchframes);
             sll_free(infos);
         }
     } while (find_next_coarsecandidate(sc, second->coarsesiglist, &cs, &cs2, 0) && !bestmatch.whole);



More information about the ffmpeg-cvslog mailing list