diff mbox series

[FFmpeg-devel,02/11] lavfi/aresample: show time_base information during setup

Message ID 20230902151921.1712373-3-stefasab@gmail.com
State New
Headers show
Series [FFmpeg-devel,01/11] lavc/avcodec.h: fix typos in AVCodecContext.pkt_timebase description | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Stefano Sabatini Sept. 2, 2023, 3:19 p.m. UTC
---
 libavfilter/af_aresample.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/libavfilter/af_aresample.c b/libavfilter/af_aresample.c
index f4bcc45616..b71ed5b91c 100644
--- a/libavfilter/af_aresample.c
+++ b/libavfilter/af_aresample.c
@@ -28,6 +28,7 @@ 
 #include "libavutil/channel_layout.h"
 #include "libavutil/opt.h"
 #include "libavutil/samplefmt.h"
+#include "libavutil/timestamp.h"
 #include "libavutil/avassert.h"
 #include "libswresample/swresample.h"
 #include "avfilter.h"
@@ -164,9 +165,9 @@  static int config_output(AVFilterLink *outlink)
     av_channel_layout_describe(&inlink ->ch_layout, inchl_buf,  sizeof(inchl_buf));
     av_channel_layout_describe(&outlink->ch_layout, outchl_buf, sizeof(outchl_buf));
 
-    av_log(ctx, AV_LOG_VERBOSE, "ch:%d chl:%s fmt:%s r:%dHz -> ch:%d chl:%s fmt:%s r:%dHz\n",
-           inlink ->ch_layout.nb_channels, inchl_buf,  av_get_sample_fmt_name(inlink->format),  inlink->sample_rate,
-           outlink->ch_layout.nb_channels, outchl_buf, av_get_sample_fmt_name(outlink->format), outlink->sample_rate);
+    av_log(ctx, AV_LOG_VERBOSE, "ch:%d chl:%s fmt:%s r:%dHz tb:%d/%d -> ch:%d chl:%s fmt:%s r:%dHz tb:%d/%d\n",
+           inlink ->ch_layout.nb_channels, inchl_buf,  av_get_sample_fmt_name(inlink->format),  inlink->sample_rate, inlink->time_base.num, inlink->time_base.den,
+           outlink->ch_layout.nb_channels, outchl_buf, av_get_sample_fmt_name(outlink->format), outlink->sample_rate, outlink->time_base.num, outlink->time_base.den);
     return 0;
 }