]> git.sesse.net Git - ffmpeg/commitdiff
avfilter: Add missing emms_c when needed
authorLuca Barbato <lu_zero@gentoo.org>
Wed, 5 Mar 2014 09:41:33 +0000 (10:41 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Wed, 5 Mar 2014 10:00:05 +0000 (11:00 +0100)
Arch specific calls should have an emms_c following to keep the cpu
state consistent.

Reported-By: wm4
CC: libav-stable@libav.org
libavfilter/af_volume.c
libavfilter/vf_gradfun.c
libavfilter/vf_hqdn3d.c

index 12d496ed4d765c347c9919855d679e17f99667e2..59223e548be31e6cf5a41d474a8c871b88354aa0 100644 (file)
@@ -278,6 +278,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
         }
     }
 
+    emms_c();
+
     if (buf != out_buf)
         av_frame_free(&buf);
 
index 79f6790f30da0f97da723a15d9bb11a15143d57f..f7c4372dd3409acd170418770c013b3547f3df5e 100644 (file)
@@ -118,6 +118,7 @@ static void filter(GradFunContext *ctx, uint8_t *dst, uint8_t *src, int width, i
         ctx->filter_line(dst + y * dst_linesize, src + y * src_linesize, dc - r / 2, width, thresh, dither[y & 7]);
         if (++y >= height) break;
     }
+    emms_c();
 }
 
 static av_cold int init(AVFilterContext *ctx)
index cd9f0d2856c163eafd50ed3642c7eb9efbcd5959..be6b7616b6b49a8ccee6abda992109660f1dad75 100644 (file)
@@ -147,6 +147,7 @@ static void denoise_depth(HQDN3DContext *s,
     else
         denoise_temporal(src, dst, frame_ant,
                          w, h, sstride, dstride, temporal, depth);
+    emms_c();
 }
 
 #define denoise(...) \