[FFmpeg-devel] [PATCH 8/9] fftools/ffmpeg: merge variable declaration and initialization
Anton Khirnov
anton at khirnov.net
Wed May 11 11:16:53 EEST 2022
---
fftools/ffmpeg.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index 5983c57410..fe7c37db62 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,
--
2.34.1
More information about the ffmpeg-devel
mailing list