summaryrefslogtreecommitdiff
path: root/command/video.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'command/video.cpp')
-rw-r--r--command/video.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/command/video.cpp b/command/video.cpp
index d0de34a..be2cb5c 100644
--- a/command/video.cpp
+++ b/command/video.cpp
@@ -105,7 +105,11 @@ int cMarkAdLogo::Load(const char *directory, char *file, int plane)
return -2;
}
- if (fread(&area.mask[plane],1,width*height,pFile)!=(size_t) (width*height)) return -2;
+ if (fread(&area.mask[plane],1,width*height,pFile)!=(size_t) (width*height))
+ {
+ fclose(pFile);
+ return -2;
+ }
if (!area.mpixel[plane])
{