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

FFMpeg读取内存数据NSData用了AVIOContext * avio_in =avio_alloc_context(inbuffer,32768*20,0,NULL,read_buffer,NULL,NULL) #172

Open
mrzhao12 opened this issue Nov 4, 2017 · 0 comments

Comments

@mrzhao12
Copy link

mrzhao12 commented Nov 4, 2017

FFMpeg读取内存数据NSData用了AVIOContext * avio_in =avio_alloc_context(inbuffer,32768*20,0,NULL,read_buffer,NULL,NULL);里的read_buffer方法,读取后推流到服务器rtmp,最后又不断的读取read_buffer方法(int read_buffer(void *opaque, uint8_t *buf, int buf_size))导致内存爆表,是不是要在哪里添加休眠???还是怎么解决?读取完后推流后就结束,不再读取read_buffer方法

http://blog.csdn.net/leixiaohua1020/article/details/39759163

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