bytedeco/javacv

About FFmpeg interrupt_callback

Open

#2.355 aberto em 18 de set. de 2025

Ver no GitHub
 (2 comments) (0 reactions) (0 assignees)Java (1.583 forks)batch import
help wantedquestion

Métricas do repositório

Stars
 (6.985 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

您好,我正在使用javacv,它非常好用。

关于javacv示例中实现的interrupt_callback我有一些疑问,为什么需要再调用avformat_alloc_context,getFormatContext已经返回了context,是不是可以直接使用,我尝试了这样做,测试中未发现问题。

希望你今天过的很愉快


Hello, I'm using JavaCV and it's been very successful.

I have some questions about the interrupt_callback implementation in the JavaCV examples. Why is it necessary to call avformat_alloc_context? Since getFormatContext already returns the context, can I use it directly? I've tried this and haven't found any issues in my testing.

I hope you have a great day.

Guia do colaborador