summaryrefslogtreecommitdiff
path: root/libavfilter/af_ashowinfo.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-05-21 22:27:07 +0200
committerClément Bœsch <ubitux@gmail.com>2013-05-21 22:29:16 +0200
commit39dc1bc90fa79ede19f5688a84d938f869924e51 (patch)
tree2fa01e6a1dba1f1a8c6d8c23d4a7afc4fe9d3e6c /libavfilter/af_ashowinfo.c
parent81bec0ace4223305831450a194e2c2be01ff2975 (diff)
downloadffmpeg-39dc1bc90fa79ede19f5688a84d938f869924e51.tar.gz
lavfi/(a)showinfo: use link frame counter instead of local counter.
Diffstat (limited to 'libavfilter/af_ashowinfo.c')
-rw-r--r--libavfilter/af_ashowinfo.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/libavfilter/af_ashowinfo.c b/libavfilter/af_ashowinfo.c
index 7770c276c9..75aed80a17 100644
--- a/libavfilter/af_ashowinfo.c
+++ b/libavfilter/af_ashowinfo.c
@@ -43,11 +43,6 @@ typedef struct AShowInfoContext {
* Scratch space for individual plane checksums for planar audio
*/
uint32_t *plane_checksums;
-
- /**
- * Frame counter
- */
- uint64_t frame;
} AShowInfoContext;
static av_cold void uninit(AVFilterContext *ctx)
@@ -86,10 +81,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
buf->channel_layout);
av_log(ctx, AV_LOG_INFO,
- "n:%"PRIu64" pts:%s pts_time:%s pos:%"PRId64" "
+ "n:%"PRId64" pts:%s pts_time:%s pos:%"PRId64" "
"fmt:%s channels:%d chlayout:%s rate:%d nb_samples:%d "
"checksum:%08X ",
- s->frame,
+ inlink->frame_count,
av_ts2str(buf->pts), av_ts2timestr(buf->pts, &inlink->time_base),
av_frame_get_pkt_pos(buf),
av_get_sample_fmt_name(buf->format), av_frame_get_channels(buf), chlayout_str,
@@ -101,7 +96,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
av_log(ctx, AV_LOG_INFO, "%08X ", s->plane_checksums[i]);
av_log(ctx, AV_LOG_INFO, "]\n");
- s->frame++;
return ff_filter_frame(inlink->dst->outputs[0], buf);
}