[FFmpeg-devel] [PATCH]avfilter/astreamslect: fixing activating in some cases
Bodecs Bela
bodecsb at vivanet.hu
Wed Mar 14 20:24:31 EET 2018
Dear All,
In case of some content, astreamselect filter remains in non active
state.
please review this pacth. I am not sure this is the right fix of this.
thank you, in advance!
Bela Bodecs
-------------- next part --------------
>From acd81c80b8b5b33b03e99adb3bad04bc291e4218 Mon Sep 17 00:00:00 2001
From: Bela Bodecs <bodecsb at vivanet.hu>
Date: Wed, 14 Mar 2018 19:22:03 +0100
Subject: [PATCH] avfilter/f_astreamselect: fixing activating in some cases
In case of some content, astreamselect filter remains in non active
state.
Signed-off-by: Bela Bodecs <bodecsb at vivanet.hu>
---
libavfilter/f_streamselect.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libavfilter/f_streamselect.c b/libavfilter/f_streamselect.c
index 923deb1..2aef3f4 100644
--- a/libavfilter/f_streamselect.c
+++ b/libavfilter/f_streamselect.c
@@ -25,6 +25,7 @@
#include "framesync.h"
#include "internal.h"
#include "video.h"
+#include "filters.h"
typedef struct StreamSelectContext {
const AVClass *class;
@@ -66,8 +67,10 @@ static int process_frame(FFFrameSync *fs)
AVFrame *out;
if (s->is_audio && s->last_pts[j] == in[j]->pts &&
- ctx->outputs[i]->frame_count_in > 0)
+ ctx->outputs[i]->frame_count_in > 0) {
+ ff_filter_set_ready(ctx->outputs[i]->src, 200);
continue;
+ }
out = av_frame_clone(in[j]);
if (!out)
return AVERROR(ENOMEM);
--
2.5.3.windows.1
More information about the ffmpeg-devel
mailing list