Commit cd77a100 authored by Linshizhi's avatar Linshizhi

update

parent 30cb28e4
...@@ -335,6 +335,8 @@ int bufferPackets() { ...@@ -335,6 +335,8 @@ int bufferPackets() {
MuxEnv::finishedCount++; MuxEnv::finishedCount++;
MuxEnv::finished[i] = true; MuxEnv::finished[i] = true;
printf("EOF\n");
if (MuxEnv::finishedCount == MuxEnv::numOfStreams) { if (MuxEnv::finishedCount == MuxEnv::numOfStreams) {
AVPacket *nullpkt = av_packet_alloc(); AVPacket *nullpkt = av_packet_alloc();
nullpkt->data = nullptr; nullpkt->data = nullptr;
...@@ -347,7 +349,7 @@ int bufferPackets() { ...@@ -347,7 +349,7 @@ int bufferPackets() {
} }
if (ret == AVERROR(EAGAIN)) { if (ret == AVERROR(EAGAIN)) {
printf("READFRAME AGAIN\n"); printf("READFRAME AGAIN: %d\n", ret);
} }
printf("Failed to read frame\n"); printf("Failed to read frame\n");
...@@ -385,7 +387,7 @@ void ioCtxInitialize() { ...@@ -385,7 +387,7 @@ void ioCtxInitialize() {
for (int i = 0; i < MuxEnv::numOfStreams; ++i) { for (int i = 0; i < MuxEnv::numOfStreams; ++i) {
// IOProto require 20KB to probe stream informations. // IOProto require 20KB to probe stream informations.
if (!MuxEnv::inited[i] && MuxEnv::protos[i].size() > 60000) { if (!MuxEnv::inited[i] && MuxEnv::protos[i].size() > 65000) {
MuxEnv::ctxs[i] = new IOCtx::InCtx{"", &MuxEnv::protos[0]}; MuxEnv::ctxs[i] = new IOCtx::InCtx{"", &MuxEnv::protos[0]};
MuxEnv::inited[i] = true; MuxEnv::inited[i] = true;
......
...@@ -52,6 +52,7 @@ if [ ! -d "build" ]; then ...@@ -52,6 +52,7 @@ if [ ! -d "build" ]; then
mkdir build mkdir build
fi fi
cd build cd build
git checkout WASM
emcmake cmake .. -DCMAKE_INSTALL_PREFIX=${BUILD_DIR} -Denable_trmem=OFF -Denable_movmem=ON -DDEBUG=OFF -DIS_EMCC_ENV=ON \ emcmake cmake .. -DCMAKE_INSTALL_PREFIX=${BUILD_DIR} -Denable_trmem=OFF -Denable_movmem=ON -DDEBUG=OFF -DIS_EMCC_ENV=ON \
-DCMAKE_CXX_FLAGS=-isystem\ ${LIB_DIR}/ffmpeg.wasm-core -DCMAKE_CXX_FLAGS=-isystem\ ${LIB_DIR}/ffmpeg.wasm-core
emmake make emmake make
......
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