[FFmpeg-cvslog] lavf/img2dec: Also auto-detect (unusual) uncompressed pcx.
Carl Eugen Hoyos
git at videolan.org
Fri Jul 15 10:28:33 CEST 2016
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Fri Jul 15 10:26:27 2016 +0200| [e1023aa1dd0cbacde77e142ec79dba71c0d444aa] | committer: Carl Eugen Hoyos
lavf/img2dec: Also auto-detect (unusual) uncompressed pcx.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e1023aa1dd0cbacde77e142ec79dba71c0d444aa
---
libavformat/img2dec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
index 9d6796f..bac0114 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])
More information about the ffmpeg-cvslog
mailing list