Browse Source

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
tags/n2.3
Luca Barbato 11 years ago
parent
commit
e995cf1bcc
3 changed files with 4 additions and 0 deletions
  1. +2
    -0
      libavfilter/af_volume.c
  2. +1
    -0
      libavfilter/vf_gradfun.c
  3. +1
    -0
      libavfilter/vf_hqdn3d.c

+ 2
- 0
libavfilter/af_volume.c View File

@@ -278,6 +278,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
}
}

emms_c();

if (buf != out_buf)
av_frame_free(&buf);



+ 1
- 0
libavfilter/vf_gradfun.c View 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)


+ 1
- 0
libavfilter/vf_hqdn3d.c View 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(...) \


Loading…
Cancel
Save