Credit Andrew for termux patches and Andrew for prores_ks format
[goodguy/cinelerra.git] / cinelerra-5.1 / mpeg2enc / mpeg2enc.c
index 5452fb42e6e977b86473d77c29f1f7ba04febe24..04f237bebc9fab6795d26a974a535600b57ca758 100644 (file)
@@ -33,6 +33,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <strings.h>
 
 #define GLOBAL_ /* used by global.h */
 #include "config.h"
@@ -222,7 +223,8 @@ static void init()
        init_idct();
        init_motion();
        init_predict_hv();
-       init_quantizer_hv();
+       int use_sse = chroma_format==CHROMA420 ? 1 : 0;
+       init_quantizer_hv(use_sse);
        init_transform_hv();
 
 /* round picture dimensions to nZearest multiple of 16 or 32 */