-stdin option crashes with mp4 file #219

Open
opened 2026-01-29 16:38:22 +00:00 by claunia · 0 comments
Owner

Originally created by @Izaron on GitHub (Dec 18, 2016).

In both Windows and Linux -stdin crashes on all MP4 files
Because in these lines the program closes the input stream and passes control to the GPAC library, which tries to open the input file only, but we have no file name, so ctx->inputfile equals to NULL.
This can be corrected by recording the stream into a temporary file and then deleting it after GPAC work, but it's brute force.

Originally created by @Izaron on GitHub (Dec 18, 2016). In both Windows and Linux -stdin crashes on all MP4 files Because in these [lines](https://github.com/CCExtractor/ccextractor/blob/master/src/ccextractor.c#L228) the program closes the input stream and passes control to the GPAC library, which tries to open the input file only, but we have no file name, so `ctx->inputfile` equals to NULL. This can be corrected by recording the stream into a temporary file and then deleting it after GPAC work, but it's brute force.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#219