diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-12-16 11:59:21 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-05-24 13:46:57 +0200 |
commit | 0c914ebd533826b20212e10896c175ff379470cf (patch) | |
tree | b47195d3afd39afbd074144912620e3b6d043a7f | |
parent | 9acce2afcfb6b52f2c2a1d5e42949bfd591f6d3a (diff) | |
download | ffmpeg-0c914ebd533826b20212e10896c175ff379470cf.tar.gz |
fftools/ffmpeg: merge variable declaration and initialization
-rw-r--r-- | fftools/ffmpeg.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 615abc6b5e..d9944afc48 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -837,7 +837,7 @@ static double psnr(double d) static void do_video_stats(OutputStream *ost, const AVPacket *pkt) { - AVCodecContext *enc; + AVCodecContext *enc = ost->enc_ctx; int frame_number; double ti1, bitrate, avg_bitrate; @@ -850,7 +850,6 @@ static void do_video_stats(OutputStream *ost, const AVPacket *pkt) } } - enc = ost->enc_ctx; frame_number = ost->packets_encoded; if (vstats_version <= 1) { fprintf(vstats_file, "frame= %5d q= %2.1f ", frame_number, |