diff options
author | Diego Biurrun <diego@biurrun.de> | 2014-03-12 13:47:33 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2014-03-22 13:21:16 +0100 |
commit | 7513234bdd93f80593bfee3eb2da8c8f0d3992da (patch) | |
tree | b787034d007ca8a33c6f5c2281786b11bcf48e63 /libavfilter | |
parent | 8b6136d3d18f44b4913803f8400d5d99b1e5b873 (diff) | |
download | ffmpeg-7513234bdd93f80593bfee3eb2da8c8f0d3992da.tar.gz |
avfilter: more correct printf format specifiers
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_ashowinfo.c | 4 | ||||
-rw-r--r-- | libavfilter/vf_showinfo.c | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/libavfilter/af_ashowinfo.c b/libavfilter/af_ashowinfo.c index 2a2edcf036..99d9ddef57 100644 --- a/libavfilter/af_ashowinfo.c +++ b/libavfilter/af_ashowinfo.c @@ -93,7 +93,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf) av_log(ctx, AV_LOG_INFO, "n:%"PRIu64" pts:%"PRId64" pts_time:%f " "fmt:%s chlayout:%s rate:%d nb_samples:%d " - "checksum:%08X ", + "checksum:%08"PRIX32" ", s->frame, buf->pts, buf->pts * av_q2d(inlink->time_base), av_get_sample_fmt_name(buf->format), chlayout_str, buf->sample_rate, buf->nb_samples, @@ -101,7 +101,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf) av_log(ctx, AV_LOG_INFO, "plane_checksums: [ "); for (i = 0; i < planes; i++) - av_log(ctx, AV_LOG_INFO, "%08X ", s->plane_checksums[i]); + av_log(ctx, AV_LOG_INFO, "%08"PRIX32" ", s->plane_checksums[i]); av_log(ctx, AV_LOG_INFO, "]\n"); s->frame++; diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index e89ffe0b6a..73d72ab8de 100644 --- a/libavfilter/vf_showinfo.c +++ b/libavfilter/vf_showinfo.c @@ -22,6 +22,8 @@ * filter for showing textual video frame information */ +#include <inttypes.h> + #include "libavutil/adler32.h" #include "libavutil/imgutils.h" #include "libavutil/internal.h" @@ -57,7 +59,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) av_log(ctx, AV_LOG_INFO, "n:%d pts:%"PRId64" pts_time:%f " "fmt:%s sar:%d/%d s:%dx%d i:%c iskey:%d type:%c " - "checksum:%u plane_checksum:[%u %u %u %u]\n", + "checksum:%"PRIu32" plane_checksum:[%"PRIu32" %"PRIu32" %"PRIu32" %"PRIu32"]\n", showinfo->frame, frame->pts, frame->pts * av_q2d(inlink->time_base), desc->name, |