在调用 start() 之前尝试访问流元数据时, FFmpegFrameGrabber 应该抛出异常
作者: shan-luan创建于 2026年2月19日更新于 2026年2月20日
标签enhancementhelp wantedquestion
正如标题中所述,在使用 `FFmpegFrameGrabber` 时,如果事先未调用 `start()` 方法,则 `getImageWidth()` 等方法将返回 `0`。这种行为可能会导致错误传播到下游,从而引发更难追踪的问题。我认为应该立即抛出 `IllegalStateException` 以明确表示此操作无效。
内容来源: bytedeco/javacv