瀏覽代碼

[mpp]: modify decode params to improve the effiency of horse racing

It is obvious.

Signed-off-by: sliver.chen <sliver.chen@rock-chips.com>
sliver.chen 7 年之前
父節點
當前提交
3d7cca63c4
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      mpp/Codec.cpp

+ 6 - 1
mpp/Codec.cpp

@@ -400,7 +400,12 @@ int Codec::decode_one_pkt(char *buf, int size, MppFrame *srcFrm, MppFrame *dstFr
 
         if (pkt_done)
             break;
-        usleep(50000);
+        /*
+         * why sleep here?
+         * mpp has a internal input pakcet list,if it is full, wait here 3ms to
+         * wait internal list isn't full.
+         */
+        usleep(3000);
     } while (1);
 
     return 0;