bytedeco/javacv

FFmpegFrameGrabber should throw an exception when attempting to access stream metadata before calling start()

Open

#2,382 创建于 2026年2月19日

在 GitHub 查看
 (4 评论) (0 反应) (0 负责人)Java (6,985 star) (1,583 fork)batch import
enhancementhelp wantedquestion

描述

As stated in the title, when using FFmpegFrameGrabber, if start() is not called beforehand, methods such as getImageWidth() will return 0. This behavior may cause errors to propagate downstream and lead to issues that are more difficult to trace. I believe an IllegalStateException should be thrown immediately to clearly indicate that this operation is invalid.

贡献者指南

FFmpegFrameGrabber should throw an exception when attempting to access stream metadata before calling start() · bytedeco/javacv#2382 | Good First Issue