Browse code

lavfi/bbox: use inlink->frame_count

Signed-off-by: Paul B Mahol <onemda@gmail.com>

Paul B Mahol authored on 2013/05/26 18:12:36
Showing 1 changed files
... ...
@@ -30,7 +30,7 @@
30 30
 #include "internal.h"
31 31
 
32 32
 typedef struct {
33
-    unsigned int frame;
33
+    int unused;
34 34
 } BBoxContext;
35 35
 
36 36
 static int query_formats(AVFilterContext *ctx)
... ...
@@ -63,7 +63,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
63 63
     h = box.y2 - box.y1 + 1;
64 64
 
65 65
     av_log(ctx, AV_LOG_INFO,
66
-           "n:%d pts:%s pts_time:%s", bbox->frame,
66
+           "n:%"PRId64" pts:%s pts_time:%s", inlink->frame_count,
67 67
            av_ts2str(frame->pts), av_ts2timestr(frame->pts, &inlink->time_base));
68 68
 
69 69
     if (has_bbox) {
... ...
@@ -76,7 +76,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
76 76
     }
77 77
     av_log(ctx, AV_LOG_INFO, "\n");
78 78
 
79
-    bbox->frame++;
80 79
     return ff_filter_frame(inlink->dst->outputs[0], frame);
81 80
 }
82 81