bytedeco/javacv

About FFmpeg interrupt_callback

Open

#2355 aperta il 18 set 2025

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)Java (1583 fork)batch import
help wantedquestion

Metriche repository

Star
 (6985 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

您好,我正在使用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.

Guida contributor