[FFmpeg-devel] [PATCH] avfilter/phase: add timeline support.
Clément Bœsch
u at pkh.me
Fri May 2 12:05:00 CEST 2014
---
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,
};
--
1.9.2
More information about the ffmpeg-devel
mailing list