mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-10-05 21:37:59 +03:00
Merge pull request #99 from kichikuou/movie
Add error checking for movie format
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user