Commit 2299e851 authored by Linshizhi's avatar Linshizhi

update

parent dd483045
...@@ -723,9 +723,18 @@ int avio_read_partial(AVIOContext *s, unsigned char *buf, int size) ...@@ -723,9 +723,18 @@ int avio_read_partial(AVIOContext *s, unsigned char *buf, int size)
len = size; len = size;
memcpy(buf, s->buf_ptr, len); memcpy(buf, s->buf_ptr, len);
s->buf_ptr += len; s->buf_ptr += len;
printf("avio_read_partial()\n");
if (!len) { if (!len) {
if (s->error) return s->error; if (s->error == AVERROR(EAGAIN) && s->eof_reached == 1) {
if (avio_feof(s)) return AVERROR_EOF; 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; return len;
} }
......
...@@ -26,7 +26,7 @@ TOOLCHAIN_FILE=$EMSDK/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmak ...@@ -26,7 +26,7 @@ TOOLCHAIN_FILE=$EMSDK/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmak
# Flags for code optimization, focus on speed instead # Flags for code optimization, focus on speed instead
# of size # of size
OPTIM_FLAGS="-g -fno-inline -fno-inline-functions --profiling" OPTIM_FLAGS="-O3"
if [[ "$OSTYPE" == "linux-gnu"* ]]; then if [[ "$OSTYPE" == "linux-gnu"* ]]; then
# Use closure complier only in linux environment # Use closure complier only in linux environment
......
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