# HG changeset patch # User michael # Date 1233925190 0 # Node ID 065d4a472bab11f9f54dd8682494ee95665e0cac # Parent 825b98750e38d3d34b05e078fe9e35f598a3479d Ensure that the palette is set in data[1] for all 8bit formats. Also document it. diff -r 825b98750e38 -r 065d4a472bab avutil.h --- a/avutil.h Tue Feb 03 18:04:52 2009 +0000 +++ b/avutil.h Fri Feb 06 12:59:50 2009 +0000 @@ -76,6 +76,10 @@ * components stored in AVFrame.data[1] should be in the range 0..255. * This is important as many custom PAL8 video codecs that were designed * to run on the IBM VGA graphics adapter use 6-bit palette components. + * + * For all the 8bit per pixel formats, an RGB32 palette is in data[1] like + * for pal8. This palette is filled in automatically by the function + * allocating the picture. */ enum PixelFormat { PIX_FMT_NONE= -1,