avcodec/imgconvert: fix nb_components and depth for PAL8 in get_pix_fmt_score()
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 10 Apr 2014 16:38:39 +0000 (18:38 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 10 Apr 2014 17:58:14 +0000 (19:58 +0200)
commitc486cfab792e53de3f5fc9f5082909ce687a3fe8
tree42cdb9104ace2c3acdb0cfda3ad07e5ae37fe03a
parentcdd21f1f03c5d59aad8f0244b1be0f864d8416a7
avcodec/imgconvert: fix nb_components and depth for PAL8 in get_pix_fmt_score()

This causes us to favor RGB8 over PAL8 when FF_LOSS_COLORQUANT is used

It probably makes sense to reinvestigate the exact scoring of pal8 when
our pal8 support improves to be supperior to rgb8

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/imgconvert.c
tests/ref/lavf/gif