shithub: openh264

Download patch

ref: 03ef2d4c828f9693d210a8723aed74a19275ba71
parent: cf5a112b491684aacc8cf1a78e44cf25ebd150ec
parent: ee596d6a13b9ca7cc42ce4de43db793616815730
author: guangwei <GuangweiWang@users.noreply.github.com>
date: Sun Mar 22 05:52:15 EDT 2020

Merge pull request #3246 from gxw-loongson/master

Using and operation when detecting Loongson mmi instructions

--- a/codec/common/src/cpu.cpp
+++ b/codec/common/src/cpu.cpp
@@ -331,7 +331,7 @@
     }
     while (fgets(buf, sizeof(buf), fp)) {
         if(!strncmp(buf, "ASEs implemented", strlen("ASEs implemented"))) {
-            if (strstr(buf, "loongson-mmi") || strstr(buf, "loongson-ext")) {
+            if (strstr(buf, "loongson-mmi") && strstr(buf, "loongson-ext")) {
                 flags |= WELS_CPU_MMI;
             }
             if (strstr(buf, "msa")) {