bytedeco/javacv

About FFmpeg interrupt_callback

Open

#2 355 ouverte le 18 sept. 2025

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)Java (6 985 stars) (1 583 forks)batch import
help wantedquestion

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.

Guide contributeur