Commit d1d0f740 authored by Linshizhi's avatar Linshizhi

Use default PROBESIZE.

parent cc6b5e35
ffmpeg.protos @ c1795064
Subproject commit ed9a740bf43e07eb4c7e77a98be88ad60215e169 Subproject commit c17950640acf39ff74654fd2c72f1c17016eb8d0
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#define ERROR 1 #define ERROR 1
#define TERMINATED 2 #define TERMINATED 2
#define PROBESIZE 5000000
typedef enum { typedef enum {
CONTEXT_STOP = 0, CONTEXT_STOP = 0,
...@@ -147,8 +148,10 @@ int contextInitializes() { ...@@ -147,8 +148,10 @@ int contextInitializes() {
Context *ctx = listGet(ctxs, i); Context *ctx = listGet(ctxs, i);
MMProto *proto = listGet(protos, i); MMProto *proto = listGet(protos, i);
printf("MW: (1)BUF SIZE: %d\n(2)EOF:%d\n", mmpBufferSize(proto), mmpIsEOF(proto));
if (ctx->state != CONTEXT_STOP || if (ctx->state != CONTEXT_STOP ||
mmpBufferSize(proto) < 25000) { (mmpBufferSize(proto) < PROBESIZE && !mmpIsEOF(proto))) {
continue; continue;
} }
......
...@@ -55,7 +55,7 @@ if [ ! -d "build" ]; then ...@@ -55,7 +55,7 @@ if [ ! -d "build" ]; then
fi fi
cd build cd build
emcmake cmake .. -DCMAKE_INSTALL_PREFIX=${BUILD_DIR} -DBUILD_SHARED_LIBS=OFF -DDEBUG=OFF -DEMCC=ON \ emcmake cmake .. -DCMAKE_INSTALL_PREFIX=${BUILD_DIR} -DBUILD_SHARED_LIBS=OFF -DDEBUG=OFF -DEMCC=ON \
-DSTREAM_PROBESIZE=20000 -DCMAKE_C_FLAGS=-isystem\ ${LIB_DIR}/ffmpeg.wasm-core -DCMAKE_C_FLAGS=-isystem\ ${LIB_DIR}/ffmpeg.wasm-core
emmake make emmake make
emmake make install emmake make install
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment