summaryrefslogtreecommitdiff
path: root/libavcodec/raw.c
diff options
context:
space:
mode:
authorMats Peterson <matsp888-at-yahoo.com@ffmpeg.org>2016-01-28 06:15:29 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-01-29 14:52:30 +0100
commitb34c9d1b9d935b77dac10ba7f82e5184e0c7ba7f (patch)
tree77d66319cd18a72545a38989918b5e355ebfab35 /libavcodec/raw.c
parent44a50feebe1fa9ce16aaeedafde6e66fb770330e (diff)
lavc/rawdec: Use AV_PIX_FMT_PAL8 for raw 1 bpp video in AVI
From https://msdn.microsoft.com/en-us/library/windows/desktop/dd318229%28v=vs.85%29.aspx: "If biCompression equals BI_RGB and the bitmap uses 8 bpp or less, the bitmap has a color table immediatelly following the BITMAPINFOHEADER structure. The color table consists of an array of RGBQUAD values. The size of the array is given by the biClrUsed member. If biClrUsed is zero, the array contains the maximum number of colors for the given bitdepth; that is, 2^biBitCount colors." Nothing about "monochrome" here. Unfortunately, pal8 to monow conversion seems a bit flaky, but that's another story. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/raw.c')
-rw-r--r--libavcodec/raw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/raw.c b/libavcodec/raw.c
index 888f554dac..4f7417ae10 100644
--- a/libavcodec/raw.c
+++ b/libavcodec/raw.c
@@ -282,7 +282,7 @@ unsigned int avcodec_pix_fmt_to_codec_tag(enum AVPixelFormat fmt)
}
const PixelFormatTag avpriv_pix_fmt_bps_avi[] = {
- { AV_PIX_FMT_MONOWHITE, 1 },
+ { AV_PIX_FMT_PAL8, 1 },
{ AV_PIX_FMT_PAL8, 2 },
{ AV_PIX_FMT_PAL8, 4 },
{ AV_PIX_FMT_PAL8, 8 },