Browse Source

[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 years ago
parent
commit
3d7cca63c4
1 changed files with 6 additions and 1 deletions
  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;