[FFmpeg-devel] [PATCH 1/2] motion-test: force C functions for the reference C context

James Almer jamrial at gmail.com
Tue Jun 3 23:45:37 CEST 2014


It was instead using the highest available asm functions, which completely 
kills the point of being a reference C context.

Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavcodec/motion-test.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/motion-test.c b/libavcodec/motion-test.c
index 3861601..7308717 100644
--- a/libavcodec/motion-test.c
+++ b/libavcodec/motion-test.c
@@ -128,6 +128,7 @@ int main(int argc, char **argv)
 
     ctx = avcodec_alloc_context3(NULL);
     ctx->flags |= CODEC_FLAG_BITEXACT;
+    av_force_cpu_flags(0);
     memset(&cctx, 0, sizeof(cctx));
     ff_dsputil_init(&cctx, ctx);
     for (c = 0; c < flags_size; c++) {
-- 
1.8.5.5



More information about the ffmpeg-devel mailing list