bytedeco/javacv

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

オープン

#2,382 opened on 2026/02/19

 (4 件のコメント) (0 件のリアクション) (0 人の担当者)Java (1,583 件のフォーク)batch import
enhancementhelp wantedquestion

Repository metrics

Stars
 (6,985 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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.

コントリビューターガイド