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)
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 (avio_feof(s)) return AVERROR_EOF;
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;
}
......
......@@ -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
......
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