Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2012-01-12 16:41:38 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-01-12 19:32:55 +0400
commitbd3a12d68db6b6ce224736d9210541b5b8907852 (patch)
tree5bb97a0e505fcc161bf90bdf99a3d2b05e856476 /libavformat/icodec.c
parent3e8a368b2bd0e75ea0beda21905ad9980a969d00 (diff)
ico: consider IconEntry.NumColors of 255 to be ambiguous
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/icodec.c')
-rw-r--r--libavformat/icodec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/icodec.c b/libavformat/icodec.c
index e539b02464..214d4773df 100644
--- a/libavformat/icodec.c
+++ b/libavformat/icodec.c
@@ -76,6 +76,8 @@ static int read_header(AVFormatContext *s, AVFormatParameters *ap)
st->codec->width = avio_r8(pb);
st->codec->height = avio_r8(pb);
ico->images[i].nb_pal = avio_r8(pb);
+ if (ico->images[i].nb_pal == 255)
+ ico->images[i].nb_pal = 0;
avio_skip(pb, 3);
st->codec->bits_per_coded_sample = avio_rl16(pb);