bytedeco/javacv

Error on InputStream.read(): java.io.IOException: closed

Open

#2 049 ouverte le 29 juin 2023

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)Java (1 583 forks)batch import
bughelp wanted

Métriques du dépôt

Stars
 (6 985 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

When I use FFmpegFrameGrabber(InputStream) and the InputStream is closed, I only get the message on stderr: Error on InputStream.read(): java.io.IOException: closed FFmpegFrameGrabber#grab then still waits in line 1454 pkt.stream_index(-1); infinitly.

I would appreciate, if FFmpegFrameGrabber#grab would return a null Frame, so I can take appropriate action. Even better would be, if FFmpegFrameGrabber#grab throws that java.io.IOException.

Guide contributeur