[FFmpeg-cvslog] ffmpeg: make timer_start a local var in transcode().
Anton Khirnov
git at videolan.org
Tue Aug 30 18:15:05 CEST 2011
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Aug 30 15:46:24 2011 +0200| [6bdd9fbc89b15bd90cb5e83517b3949c740d02d6] | committer: Michael Niedermayer
ffmpeg: make timer_start a local var in transcode().
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6bdd9fbc89b15bd90cb5e83517b3949c740d02d6
---
ffmpeg.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index 2d39c9c..a035bc3 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -222,8 +222,6 @@ static char *forced_key_frames = NULL;
static float dts_delta_threshold = 10;
-static int64_t timer_start;
-
static uint8_t *audio_buf;
static uint8_t *audio_out;
static unsigned int allocated_audio_out_size, allocated_audio_buf_size;
@@ -1311,7 +1309,7 @@ static void do_video_stats(AVFormatContext *os, OutputStream *ost,
static void print_report(OutputFile *output_files,
OutputStream *ost_table, int nb_ostreams,
- int is_last_report)
+ int is_last_report, int64_t timer_start)
{
char buf[1024];
OutputStream *ost;
@@ -1903,6 +1901,7 @@ static int transcode(OutputFile *output_files,
int want_sdp = 1;
uint8_t *no_packet;
int no_packet_count=0;
+ int64_t timer_start;
if (!(no_packet = av_mallocz(nb_input_files)))
exit_program(1);
@@ -2485,7 +2484,7 @@ static int transcode(OutputFile *output_files,
av_free_packet(&pkt);
/* dump report by using the output first video and audio streams */
- print_report(output_files, output_streams, nb_output_streams, 0);
+ print_report(output_files, output_streams, nb_output_streams, 0, timer_start);
}
/* at the end of stream, we must flush the decoder buffers */
@@ -2505,7 +2504,7 @@ static int transcode(OutputFile *output_files,
}
/* dump report by using the first video and audio streams */
- print_report(output_files, output_streams, nb_output_streams, 1);
+ print_report(output_files, output_streams, nb_output_streams, 1, timer_start);
/* close each encoder */
for (i = 0; i < nb_output_streams; i++) {
More information about the ffmpeg-cvslog
mailing list