[FFmpeg-cvslog] avfilter/af_anlmdn: add timeline support

2019-01-13 Thread Paul B Mahol
ffmpeg | branch: master | Paul B Mahol  | Sun Jan 13 11:55:01 
2019 +0100| [9217dedcd99109f5a22fe43bdde26d68542c3963] | committer: Paul B Mahol

avfilter/af_anlmdn: add timeline support

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9217dedcd99109f5a22fe43bdde26d68542c3963
---

 libavfilter/af_anlmdn.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/libavfilter/af_anlmdn.c b/libavfilter/af_anlmdn.c
index 43ceab8e4a..c637f170d2 100644
--- a/libavfilter/af_anlmdn.c
+++ b/libavfilter/af_anlmdn.c
@@ -204,7 +204,7 @@ static int filter_channel(AVFilterContext *ctx, void *arg, 
int ch, int nb_jobs)
 s->dsp.compute_cache(cache + S, f, S, K, i, i + 1);
 }
 
-for (int j = 0; j < 2 * S; j++) {
+for (int j = 0; j < 2 * S && !ctx->is_disabled; j++) {
 const float distance = cache[j];
 unsigned weight_lut_idx;
 float w;
@@ -344,5 +344,6 @@ AVFilter ff_af_anlmdn = {
 .uninit= uninit,
 .inputs= inputs,
 .outputs   = outputs,
-.flags = AVFILTER_FLAG_SLICE_THREADS,
+.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL |
+ AVFILTER_FLAG_SLICE_THREADS,
 };

___
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog


[FFmpeg-cvslog] checkasm/af_afir: relax the max allowed absolute difference

2019-01-13 Thread James Almer
ffmpeg | branch: master | James Almer  | Thu Jan 10 20:33:06 
2019 -0300| [f477ee3e8956cd5a83282033e93c7673f40bd598] | committer: James Almer

checkasm/af_afir: relax the max allowed absolute difference

Should fix failures on x86_32.

Signed-off-by: James Almer 

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f477ee3e8956cd5a83282033e93c7673f40bd598
---

 tests/checkasm/af_afir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/checkasm/af_afir.c b/tests/checkasm/af_afir.c
index 54e2f68d6c..e3fb76e8e0 100644
--- a/tests/checkasm/af_afir.c
+++ b/tests/checkasm/af_afir.c
@@ -53,7 +53,7 @@ static void test_fcmul_add(const float *src0, const float 
*src1, const float *sr
 call_ref(cdst, src1, src2, LEN);
 call_new(odst, src1, src2, LEN);
 for (i = 0; i <= LEN*2; i++) {
-if (!float_near_abs_eps(cdst[i], odst[i], FLT_EPSILON)) {
+if (!float_near_abs_eps(cdst[i], odst[i], 6.2e-05)) {
 fprintf(stderr, "%d: %- .12f - %- .12f = % .12g\n",
 i, cdst[i], odst[i], cdst[i] - odst[i]);
 fail();

___
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog


[FFmpeg-cvslog] avcodec/vp3: ref_frame/ref_frames are only required when HAVE_THREADS=1

2019-01-13 Thread Peter Ross
ffmpeg | branch: master | Peter Ross  | Fri Jan  4 13:06:07 
2019 +1100| [d52a1be4e339f977485941ebf3bd26da2a40f72f] | committer: Peter Ross

avcodec/vp3: ref_frame/ref_frames are only required when HAVE_THREADS=1

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d52a1be4e339f977485941ebf3bd26da2a40f72f
---

 libavcodec/vp3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
index 9df2fda49d..a5d8c2ed0b 100644
--- a/libavcodec/vp3.c
+++ b/libavcodec/vp3.c
@@ -1961,6 +1961,7 @@ fail:
 return ret;
 }
 
+#if HAVE_THREADS
 static int ref_frame(Vp3DecodeContext *s, ThreadFrame *dst, ThreadFrame *src)
 {
 ff_thread_release_buffer(s->avctx, dst);
@@ -1979,7 +1980,6 @@ static int ref_frames(Vp3DecodeContext *dst, 
Vp3DecodeContext *src)
 return 0;
 }
 
-#if HAVE_THREADS
 static int vp3_update_thread_context(AVCodecContext *dst, const AVCodecContext 
*src)
 {
 Vp3DecodeContext *s = dst->priv_data, *s1 = src->priv_data;

___
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog