Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
ParaEncode
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ParaEncode
Commits
cd77a100
Commit
cd77a100
authored
May 05, 2022
by
Linshizhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
30cb28e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
interfaces.cc
src/wasms/interfaces.cc
+4
-2
wasm-build.sh
wasm-build.sh
+1
-0
No files found.
src/wasms/interfaces.cc
View file @
cd77a100
...
...
@@ -335,6 +335,8 @@ int bufferPackets() {
MuxEnv
::
finishedCount
++
;
MuxEnv
::
finished
[
i
]
=
true
;
printf
(
"EOF
\n
"
);
if
(
MuxEnv
::
finishedCount
==
MuxEnv
::
numOfStreams
)
{
AVPacket
*
nullpkt
=
av_packet_alloc
();
nullpkt
->
data
=
nullptr
;
...
...
@@ -347,7 +349,7 @@ int bufferPackets() {
}
if
(
ret
==
AVERROR
(
EAGAIN
))
{
printf
(
"READFRAME AGAIN
\n
"
);
printf
(
"READFRAME AGAIN
: %d
\n
"
,
ret
);
}
printf
(
"Failed to read frame
\n
"
);
...
...
@@ -385,7 +387,7 @@ void ioCtxInitialize() {
for
(
int
i
=
0
;
i
<
MuxEnv
::
numOfStreams
;
++
i
)
{
// IOProto require 20KB to probe stream informations.
if
(
!
MuxEnv
::
inited
[
i
]
&&
MuxEnv
::
protos
[
i
].
size
()
>
6
0
000
)
{
if
(
!
MuxEnv
::
inited
[
i
]
&&
MuxEnv
::
protos
[
i
].
size
()
>
6
5
000
)
{
MuxEnv
::
ctxs
[
i
]
=
new
IOCtx
::
InCtx
{
""
,
&
MuxEnv
::
protos
[
0
]};
MuxEnv
::
inited
[
i
]
=
true
;
...
...
wasm-build.sh
View file @
cd77a100
...
...
@@ -52,6 +52,7 @@ if [ ! -d "build" ]; then
mkdir
build
fi
cd
build
git checkout WASM
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
emmake make
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment