Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
ffmpeg.wasm-core
Commits
2299e851
Commit
2299e851
authored
May 12, 2022
by
Linshizhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
dd483045
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
aviobuf.c
libavformat/aviobuf.c
+11
-2
var.sh
wasm/build-scripts/var.sh
+1
-1
No files found.
libavformat/aviobuf.c
View file @
2299e851
...
...
@@ -723,10 +723,19 @@ int avio_read_partial(AVIOContext *s, unsigned char *buf, int size)
len
=
size
;
memcpy
(
buf
,
s
->
buf_ptr
,
len
);
s
->
buf_ptr
+=
len
;
printf
(
"avio_read_partial()
\n
"
);
if
(
!
len
)
{
if
(
s
->
error
)
return
s
->
error
;
if
(
s
->
error
==
AVERROR
(
EAGAIN
)
&&
s
->
eof_reached
==
1
)
{
s
->
error
=
0
;
if
(
avio_feof
(
s
))
return
AVERROR_EOF
;
}
if
(
s
->
error
)
{
return
s
->
error
;
}
if
(
avio_feof
(
s
))
{
return
AVERROR_EOF
;
}
}
return
len
;
}
...
...
wasm/build-scripts/var.sh
View file @
2299e851
...
...
@@ -26,7 +26,7 @@ TOOLCHAIN_FILE=$EMSDK/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmak
# Flags for code optimization, focus on speed instead
# of size
OPTIM_FLAGS
=
"-
g -fno-inline -fno-inline-functions --profiling
"
OPTIM_FLAGS
=
"-
O3
"
if
[[
"
$OSTYPE
"
==
"linux-gnu"
*
]]
;
then
# Use closure complier only in linux environment
...
...
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