media-server使用原仓库并适配 (#1180)

* remote media-server

* 适配第三方库media-server使用原仓库

* ireader/media-server库使用gitee镜像

Co-authored-by: monktan <monktan@tencent.com>
This commit is contained in:
夏楚
2021-10-22 14:16:39 +08:00
committed by GitHub
parent 6d384c4a1e
commit 19ebb03458
4 changed files with 7 additions and 9 deletions

View File

@@ -107,13 +107,13 @@ static struct mov_buffer_t s_io = {
MP4FileIO *thiz = (MP4FileIO *) ctx;
return thiz->onWrite(data, bytes);
},
[](void *ctx, uint64_t offset) {
[](void *ctx, int64_t offset) {
MP4FileIO *thiz = (MP4FileIO *) ctx;
return thiz->onSeek(offset);
},
[](void *ctx) {
MP4FileIO *thiz = (MP4FileIO *) ctx;
return (uint64_t)thiz->onTell();
return (int64_t)thiz->onTell();
}
};