Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix segfault when reading mp4 files #1078

Closed
wants to merge 20 commits into from
Closed
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 5 additions & 3 deletions ip/mp4.c
Expand Up @@ -171,11 +171,13 @@ static int mp4_open(struct input_plugin_data *ip_data)
NeAACDecSetConfiguration(priv->decoder, neaac_cfg);

/* open mpeg-4 file */
#ifdef MP4_DETAILS_ALL
priv->mp4.handle = MP4Read(ip_data->filename, 0);
#else
#ifdef __APPLE__
OxygenCobalt marked this conversation as resolved.
Show resolved Hide resolved
/* MP4Read doesnt have a second argument on macos */
priv->mp4.handle = MP4Read(ip_data->filename);
#else
priv->mp4.handle = MP4Read(ip_data->filename, NULL);
#endif

if (!priv->mp4.handle) {
d_print("MP4Read failed\n");
goto out;
Expand Down