lavc/qtrle: Use AV_PIX_FMT_PAL8 for 1-bit video
authorMats Peterson <matsp888@yahoo.com>
Tue, 29 Dec 2015 21:50:56 +0000 (22:50 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 4 Jan 2016 02:31:35 +0000 (03:31 +0100)
commitbf42a7ef6d073221915dcc042c080374045ab245
treed4c279e1d61dc576e1ffb1d7be5a222c7834f5f1
parent4da2ac5c7a491b20be62ad19d77526e62aa57c69
lavc/qtrle: Use AV_PIX_FMT_PAL8 for 1-bit video

This commit fixes the lack of palettized display of 1-bit video
in the qtrle decoder. It is related to my commit of
lavf/qtpalette, which added 1-bit video to the "palettized video"
category. As far as I can see, everything works fine, but comments are
of course welcome.

Below are links to sample files, which should now be displayed properly
with bluish colors, but which were previously displayed in black &
white.

Matroska:
https://drive.google.com/open?id=0B3_pEBoLs0faNjI0cHBMWDhYY2c
Earth Spin 1-bit qtrle.mkv

QuickTime (mov):
https://drive.google.com/open?id=0B3_pEBoLs0faUlItWm9KaGJSTEE
Earth Spin 1-bit qtrle.mov

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/qtrle.c
tests/ref/fate/qtrle-1bit