aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg_mux.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-09-24 10:08:00 +0200
committerAnton Khirnov <anton@khirnov.net>2024-09-30 09:29:18 +0200
commit434377a7647f4beb2182ea9f27abb6a84347f42c (patch)
treef2bc1645ad96915d96aabd3731b54b5aa71bb7e1 /fftools/ffmpeg_mux.c
parentf295b4d8a0a1726157b4404c9cdd9a03aa7f171d (diff)
downloadffmpeg-434377a7647f4beb2182ea9f27abb6a84347f42c.tar.gz
fftools/ffmpeg_enc: split Encoder into a private and public part
Similar to what was previously done for other components, e.g. decoders (see 3b84140a1bb5a5b3044915888a40a7b619921633). Start by moving {samples,frames}_encoded into the public struct.
Diffstat (limited to 'fftools/ffmpeg_mux.c')
-rw-r--r--fftools/ffmpeg_mux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fftools/ffmpeg_mux.c b/fftools/ffmpeg_mux.c
index d38f1ec317..1980e3287c 100644
--- a/fftools/ffmpeg_mux.c
+++ b/fftools/ffmpeg_mux.c
@@ -723,9 +723,9 @@ static void mux_final_stats(Muxer *mux)
of->index, j, av_get_media_type_string(type));
if (ost->enc) {
av_log(of, AV_LOG_VERBOSE, "%"PRIu64" frames encoded",
- ost->frames_encoded);
+ ost->enc->frames_encoded);
if (type == AVMEDIA_TYPE_AUDIO)
- av_log(of, AV_LOG_VERBOSE, " (%"PRIu64" samples)", ost->samples_encoded);
+ av_log(of, AV_LOG_VERBOSE, " (%"PRIu64" samples)", ost->enc->samples_encoded);
av_log(of, AV_LOG_VERBOSE, "; ");
}