Prevent loading image files with null/empty paths

This commit is contained in:
jp9000
2014-07-24 00:25:05 -07:00
parent 6d89dde0da
commit c9e225d719
2 changed files with 4 additions and 1 deletions

View File

@@ -59,6 +59,9 @@ static bool ffmpeg_image_init(struct ffmpeg_image *info, const char *file)
{
int ret;
if (!file || !*file)
return false;
memset(info, 0, sizeof(struct ffmpeg_image));
info->file = file;
info->stream_idx = -1;