From e1023aa1dd0cbacde77e142ec79dba71c0d444aa Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Fri, 15 Jul 2016 10:26:27 +0200 Subject: lavf/img2dec: Also auto-detect (unusual) uncompressed pcx. --- libavformat/img2dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/img2dec.c') 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]) -- cgit v1.2.3