Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

操作失败的错误信息能否上抛给java #251

Open
ChasingWord opened this issue Oct 14, 2024 · 0 comments
Open

操作失败的错误信息能否上抛给java #251

ChasingWord opened this issue Oct 14, 2024 · 0 comments

Comments

@ChasingWord
Copy link

目前只会返回执行结果,int类型,执行失败的错误信息没有上抛出来,只是进行了log打印
如果是内存不足,需要提示用户,但java拿不到错误信息
看了是这个方法有进行log打印错误信息:
ffmpeg_mux.c文件:
int mux_check_init(Muxer *mux) { if (ret < 0) { av_log(mux, AV_LOG_ERROR, "Could not write header (incorrect codec " "parameters ?): %s\n", av_err2str(ret)); return ret; } }
不会写c,作者能否有空的时候,帮忙把错误信息上抛到java层

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant