Merge pull request #99 from kichikuou/movie

Add error checking for movie format
This commit is contained in:
Nunuhara Cabbage
2023-01-07 08:29:18 -08:00
committed by GitHub
+6
View File
@@ -115,6 +115,12 @@ struct movie_context *movie_load(const char *filename)
movie_free(mc);
return NULL;
}
if (!plm_has_headers(mc->plm)) {
WARNING("%s: not a MPEG-PS file", path);
free(path);
movie_free(mc);
return NULL;
}
free(path);
if (!movie_shader.program)