summaryrefslogtreecommitdiff
path: root/command/video.cpp
diff options
context:
space:
mode:
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)
{