1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

ico: consider IconEntry.NumColors of 255 to be ambiguous

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Peter Ross 2012-01-12 23:41:38 +11:00 committed by Michael Niedermayer
parent 3e8a368b2b
commit bd3a12d68d

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