Commit e995cf1b authored by Luca Barbato's avatar Luca Barbato

avfilter: Add missing emms_c when needed

Arch specific calls should have an emms_c following to keep the cpu
state consistent.

Reported-By: wm4
CC: libav-stable@libav.org
parent 5ddc9f50
...@@ -278,6 +278,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf) ...@@ -278,6 +278,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
} }
} }
emms_c();
if (buf != out_buf) if (buf != out_buf)
av_frame_free(&buf); av_frame_free(&buf);
......
...@@ -118,6 +118,7 @@ static void filter(GradFunContext *ctx, uint8_t *dst, uint8_t *src, int width, i ...@@ -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]); ctx->filter_line(dst + y * dst_linesize, src + y * src_linesize, dc - r / 2, width, thresh, dither[y & 7]);
if (++y >= height) break; if (++y >= height) break;
} }
emms_c();
} }
static av_cold int init(AVFilterContext *ctx) static av_cold int init(AVFilterContext *ctx)
......
...@@ -147,6 +147,7 @@ static void denoise_depth(HQDN3DContext *s, ...@@ -147,6 +147,7 @@ static void denoise_depth(HQDN3DContext *s,
else else
denoise_temporal(src, dst, frame_ant, denoise_temporal(src, dst, frame_ant,
w, h, sstride, dstride, temporal, depth); w, h, sstride, dstride, temporal, depth);
emms_c();
} }
#define denoise(...) \ #define denoise(...) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment