[FFmpeg-devel] [PATCH] avfilter/phase: add timeline support.
Clément Bœsch
u at pkh.me
Fri May 2 12:10:14 CEST 2014
On Fri, May 02, 2014 at 12:05:00PM +0200, Clément Bœsch wrote:
> ---
> libavfilter/vf_phase.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/libavfilter/vf_phase.c b/libavfilter/vf_phase.c
> index 2dcc6fa..e64632f 100644
> --- a/libavfilter/vf_phase.c
> +++ b/libavfilter/vf_phase.c
> @@ -245,6 +245,11 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
> int plane, top, y;
> AVFrame *out;
>
> + if (ctx->is_disabled) {
> + av_frame_free(&s->frame);
> + return ff_filter_frame(outlink, in);
> + }
> +
> out = ff_get_video_buffer(outlink, outlink->w, outlink->h);
> if (!out) {
> av_frame_free(&in);
> @@ -317,4 +322,5 @@ AVFilter ff_vf_phase = {
> .query_formats = query_formats,
> .inputs = phase_inputs,
> .outputs = phase_outputs,
> + .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL,
My bad, actually TIMELINE_GENERIC should be fine, without the first chunk;
(I thought it was a previous frame cached)
so basically, just .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
--
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140502/8ae29ffe/attachment.asc>
More information about the ffmpeg-devel
mailing list