summaryrefslogtreecommitdiff
path: root/libavformat/img2dec.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2016-07-15 10:26:27 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2016-07-15 10:26:27 +0200
commite1023aa1dd0cbacde77e142ec79dba71c0d444aa (patch)
treedc1a6d34bef54e9055c58e74fafdcb77bdd91cb1 /libavformat/img2dec.c
parent040b4e139b9415fa31ef409d7a867d7360ee1d60 (diff)
lavf/img2dec: Also auto-detect (unusual) uncompressed pcx.
Diffstat (limited to 'libavformat/img2dec.c')
-rw-r--r--libavformat/img2dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
index 9d6796ff3e..bac0114887 100644
--- a/libavformat/img2dec.c
+++ b/libavformat/img2dec.c
@@ -773,7 +773,7 @@ static int pcx_probe(AVProbeData *p)
if ( p->buf_size < 128
|| b[0] != 10
|| b[1] > 5
- || b[2] != 1
+ || b[2] > 1
|| av_popcount(b[3]) != 1 || b[3] > 8
|| AV_RL16(&b[4]) > AV_RL16(&b[8])
|| AV_RL16(&b[6]) > AV_RL16(&b[10])