提交 b5bbc4ba 编写于 作者: Z Zhang Rui

ijkavformat/ijkmediadatasource: fix crash when seek

上级 073d3874
......@@ -168,6 +168,11 @@ static int64_t ijkmds_seek(URLContext *h, int64_t pos, int whence)
if (!c->media_data_source)
return AVERROR(EINVAL);
if (JNI_OK != SDL_JNI_SetupThreadEnv(&env)) {
av_log(h, AV_LOG_ERROR, "%s: SDL_JNI_SetupThreadEnv: failed", __func__);
return AVERROR(EINVAL);
}
if (whence == AVSEEK_SIZE) {
av_log(h, AV_LOG_TRACE, "%s: AVSEEK_SIZE: %"PRId64"\n", __func__, (int64_t)c->logical_size);
return c->logical_size;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册