1 From bf1163a19667377a1861b38fa64a8cf7ee2d0e40 Mon Sep 17 00:00:00 2001
2 From: Antonio Ospite <ao2@ao2.it>
3 Date: Tue, 17 Nov 2015 16:28:03 +0100
4 Subject: [PATCH] Instrument code with fps-meter
5 X-Face: z*RaLf`X<@C75u6Ig9}{oW$H;1_\2t5)({*|jhM<pyWR#k60!#=#>/Vb;]yA5<GWI5`6u&+
6 ;6b'@y|8w"wB;4/e!7wYYrcqdJFY,~%Gk_4]cq$Ei/7<j&N3ah(m`ku?pX.&+~:_/wC~dwn^)MizBG
7 !pE^+iDQQ1yC6^,)YDKkxDd!T>\I~93>J<_`<4)A{':UrE
9 Instrument code with fps-meter:
10 http://git.ao2.it/experiments/fps-meter.git/
12 examples/am7xxx-play.c | 5 +++++
13 1 file changed, 5 insertions(+)
15 diff --git a/examples/am7xxx-play.c b/examples/am7xxx-play.c
16 index 81aff84..4828a9d 100644
17 --- a/examples/am7xxx-play.c
18 +++ b/examples/am7xxx-play.c
20 #include <libswscale/swscale.h>
23 +#include "fps-meter.h"
25 static unsigned int run = 1;
27 @@ -342,6 +343,7 @@ static int am7xxx_play(const char *input_format_string,
31 + struct fps_meter_stats stats;
33 ret = video_input_init(&input_ctx, input_format_string, input_path, input_options);
35 @@ -410,6 +412,8 @@ static int am7xxx_play(const char *input_format_string,
39 + fps_meter_init(&stats);
44 @@ -503,6 +507,7 @@ static int am7xxx_play(const char *input_format_string,
48 + fps_meter_update(&stats);
51 if (!output_ctx.raw_output && got_packet)