[FFmpeg-cvslog] fftools/ffmpeg: merge variable declaration and initialization
Anton Khirnov
git at videolan.org
Tue May 24 14:56:16 EEST 2022
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Dec 16 11:59:21 2021 +0100| [0c914ebd533826b20212e10896c175ff379470cf] | committer: Anton Khirnov
fftools/ffmpeg: merge variable declaration and initialization
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0c914ebd533826b20212e10896c175ff379470cf
---
fftools/ffmpeg.c | 3 +--
1 file changed, 1 insertion(+), 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,
More information about the ffmpeg-cvslog
mailing list