diff utils.c @ 814:8f31ed5bacd1 libavcodec

dont call emms_c() for each MB
author michaelni
date Thu, 31 Oct 2002 12:11:53 +0000
parents 5da504c8c90e
children a25aed263097
line wrap: on
line diff
--- a/utils.c	Thu Oct 31 11:47:58 2002 +0000
+++ b/utils.c	Thu Oct 31 12:11:53 2002 +0000
@@ -120,6 +120,9 @@
     int ret;
 
     ret = avctx->codec->encode(avctx, buf, buf_size, (void *)pict);
+    
+    emms_c(); //needed to avoid a emms_c() call before every return;
+
     avctx->frame_number++;
     return ret;
 }
@@ -135,6 +138,9 @@
 
     ret = avctx->codec->decode(avctx, picture, got_picture_ptr, 
                                buf, buf_size);
+
+    emms_c(); //needed to avoid a emms_c() call before every return;
+
     if (*got_picture_ptr)                           
         avctx->frame_number++;
     return ret;