[FFmpeg-cvslog] lavfi/avf_showspectrum: set output frame rate.
Nicolas George
git at videolan.org
Thu Aug 14 19:53:45 CEST 2014
ffmpeg | branch: master | Nicolas George <george at nsup.org> | Sun Aug 3 16:23:18 2014 +0200| [a3aaaec8916b8fae810ad35ff3ca299336f0bda0] | committer: Nicolas George
lavfi/avf_showspectrum: set output frame rate.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a3aaaec8916b8fae810ad35ff3ca299336f0bda0
---
libavfilter/avf_showspectrum.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavfilter/avf_showspectrum.c b/libavfilter/avf_showspectrum.c
index 4a4b4f4..e3ae6ea 100644
--- a/libavfilter/avf_showspectrum.c
+++ b/libavfilter/avf_showspectrum.c
@@ -246,6 +246,8 @@ static int config_output(AVFilterLink *outlink)
if (s->xpos >= outlink->w)
s->xpos = 0;
+ outlink->frame_rate = av_make_q(inlink->sample_rate, win_size);
+
s->combine_buffer =
av_realloc_f(s->combine_buffer, outlink->h * 3,
sizeof(*s->combine_buffer));
More information about the ffmpeg-cvslog
mailing list