Browse Source

ico: consider IconEntry.NumColors of 255 to be ambiguous

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.10
Peter Ross Michael Niedermayer 14 years ago
parent
commit
bd3a12d68d
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/icodec.c

+ 2
- 0
libavformat/icodec.c View File

@@ -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);


Loading…
Cancel
Save