]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/img2dec.c
librtmp: Avoid an infiniloop setting connection arguments
[ffmpeg] / libavformat / img2dec.c
index 9d6796ff3e90c4cc5a5dd57417f4b69bd15a0e96..bac01148879ba9db36daa6849c5f2bbc7cfe48c0 100644 (file)
@@ -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])