bytedeco/javacv

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

Open

#2382 aperta il 19 feb 2026

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)Java (1583 fork)batch import
enhancementhelp wantedquestion

Metriche repository

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

Descrizione

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.

Guida contributor