[FFmpeg-devel] [PATCH 1/2] lavfi/avf_showspectrum: set output frame rate.

Clément Bœsch u at pkh.me
Wed Aug 6 11:37:23 CEST 2014


On Sun, Aug 03, 2014 at 04:29:36PM +0200, Nicolas George wrote:
> Signed-off-by: Nicolas George <george at nsup.org>
> ---
>  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));

OK

May I ask what use-case this is fixing?

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140806/d104dad5/attachment.asc>


More information about the ffmpeg-devel mailing list