diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-04-08 18:12:46 +0400 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-04-09 19:21:35 +0400 |
commit | 24eac3cff54a5828ba76bc1ad93b99724cde45c1 (patch) | |
tree | f4ee80d813d6f6fe38ba8aeb72d0c627a2879e21 /libavutil/pixdesc.c | |
parent | bbaf941e29dcc1209dc0b0545bb0c31c86bd73b8 (diff) |
Mark GRAY8 format as pseudo-paletted.
This fixes that the GIF encoder crashes with it because
it has no palette.
And the arguments for the pseudopalette apply to gray8 as
much as to RGB8 etc.
In addition the changes required in lavfi should be needed anyway
when adding support for RGB8 etc.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavutil/pixdesc.c')
-rw-r--r-- | libavutil/pixdesc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c index 233b217643..8572719822 100644 --- a/libavutil/pixdesc.c +++ b/libavutil/pixdesc.c @@ -220,6 +220,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB] = { .comp = { { 0, 0, 1, 0, 7 }, /* Y */ }, + .flags = PIX_FMT_PSEUDOPAL, }, [PIX_FMT_MONOWHITE] = { .name = "monow", |