summaryrefslogtreecommitdiff
path: root/command/video.cpp
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2015-09-26 19:20:24 +0200
committerJochen Dolze <vdr@dolze.de>2015-09-26 19:20:24 +0200
commit53454360c279844d0783b70cde023fecfc8ea69a (patch)
tree09cb26e2f6615d0d687c338d3ffef9e7b16fc1ca /command/video.cpp
parent5e9b092b54111b9d7e5889b76c30b9de7a1f6088 (diff)
downloadvdr-plugin-markad-53454360c279844d0783b70cde023fecfc8ea69a.tar.gz
vdr-plugin-markad-53454360c279844d0783b70cde023fecfc8ea69a.tar.bz2
Added missing files from last commit ;)
Diffstat (limited to 'command/video.cpp')
-rw-r--r--command/video.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/command/video.cpp b/command/video.cpp
index 1cfbd37..b828c0c 100644
--- a/command/video.cpp
+++ b/command/video.cpp
@@ -84,11 +84,13 @@ int cMarkAdLogo::Load(const char *directory, char *file, int plane)
}
int width,height;
- if (fscanf(pFile, "P5\n#C%1i %4i\n%3d %3d\n255\n#", &area.corner,&area.mpixel[plane],&width,&height)!=4)
+ char c;
+ if (fscanf(pFile, "P5\n#%1c%1i %4i\n%3d %3d\n255\n#", &c,&area.corner,&area.mpixel[plane],&width,&height)!=5)
{
fclose(pFile);
return -2;
}
+ if (c=='D') macontext->Audio.Options.IgnoreDolbyDetection=true;
if (height==255)
{