diff options
author | Jochen Dolze <vdr@dolze.de> | 2011-02-16 22:28:47 +0100 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2011-02-16 22:28:47 +0100 |
commit | 1da9e63c101c81aed8e30f996570a0bccf5385bf (patch) | |
tree | 42fcd0670c2c7920a8b00017313452783d065bc7 /command/video.cpp | |
parent | 92599dbf7638540b9ed9ff3dbd6f2625c1c3f45f (diff) | |
download | vdr-plugin-markad-1da9e63c101c81aed8e30f996570a0bccf5385bf.tar.gz vdr-plugin-markad-1da9e63c101c81aed8e30f996570a0bccf5385bf.tar.bz2 |
Drop of -i 1/2 (ignore video/audio info)
Small bugfixes
Diffstat (limited to 'command/video.cpp')
-rw-r--r-- | command/video.cpp | 6 |
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]) { |