mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-22 07:20:45 +00:00
lavfi/show{spectrum,waves}: use ff_filter_frame().
This commit is contained in:
parent
605f1d9865
commit
9262f13269
@ -188,9 +188,7 @@ inline static void push_frame(AVFilterLink *outlink)
|
|||||||
showspectrum->filled = 0;
|
showspectrum->filled = 0;
|
||||||
showspectrum->req_fullfilled = 1;
|
showspectrum->req_fullfilled = 1;
|
||||||
|
|
||||||
ff_start_frame(outlink, avfilter_ref_buffer(showspectrum->outpicref, ~AV_PERM_WRITE));
|
ff_filter_frame(outlink, avfilter_ref_buffer(showspectrum->outpicref, ~AV_PERM_WRITE));
|
||||||
ff_draw_slice(outlink, 0, outlink->h, 1);
|
|
||||||
ff_end_frame(outlink);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int request_frame(AVFilterLink *outlink)
|
static int request_frame(AVFilterLink *outlink)
|
||||||
|
@ -153,9 +153,7 @@ inline static void push_frame(AVFilterLink *outlink)
|
|||||||
{
|
{
|
||||||
ShowWavesContext *showwaves = outlink->src->priv;
|
ShowWavesContext *showwaves = outlink->src->priv;
|
||||||
|
|
||||||
ff_start_frame(outlink, showwaves->outpicref);
|
ff_filter_frame(outlink, showwaves->outpicref);
|
||||||
ff_draw_slice(outlink, 0, outlink->h, 1);
|
|
||||||
ff_end_frame(outlink);
|
|
||||||
showwaves->req_fullfilled = 1;
|
showwaves->req_fullfilled = 1;
|
||||||
showwaves->outpicref = NULL;
|
showwaves->outpicref = NULL;
|
||||||
showwaves->buf_idx = 0;
|
showwaves->buf_idx = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user