[PATCH] Declare the PIX_FMT_GRAY8 pixel format as a paletted format. This is consistent with the allocation currently done for PIX_FMT_GRAY8 pictures, and with what is done for other similar formats.

Stefano Sabatini stefano.sabatini-lala
Wed Mar 3 00:34:40 CET 2010


No significant slow-downs have been measured.
---
 libavutil/pixdesc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c
index e4ced8e..4d86165 100644
--- a/libavutil/pixdesc.c
+++ b/libavutil/pixdesc.c
@@ -199,6 +199,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB] = {
         .comp = {
             {0,0,1,0,7},        /* Y */
         },
+        .flags = PIX_FMT_PAL,
     },
     [PIX_FMT_MONOWHITE] = {
         .name = "monow",
-- 
1.6.6.1


--ZPt4rx8FFjLCG7dd
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="0001-Fill-the-r-g-b-values-used-for-computing-the-c-pal_y.patch"




More information about the ffmpeg-devel mailing list