diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-04-08 16:12:46 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-04-09 17:21:35 +0200 |
commit | 24eac3cff54a5828ba76bc1ad93b99724cde45c1 (patch) | |
tree | f4ee80d813d6f6fe38ba8aeb72d0c627a2879e21 /libavfilter/drawutils.c | |
parent | bbaf941e29dcc1209dc0b0545bb0c31c86bd73b8 (diff) | |
download | ffmpeg-24eac3cff54a5828ba76bc1ad93b99724cde45c1.tar.gz |
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 'libavfilter/drawutils.c')
-rw-r--r-- | libavfilter/drawutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/drawutils.c b/libavfilter/drawutils.c index 9b24cf7ac7..954c075a5f 100644 --- a/libavfilter/drawutils.c +++ b/libavfilter/drawutils.c @@ -134,7 +134,7 @@ int ff_draw_init(FFDrawContext *draw, enum PixelFormat format, unsigned flags) if (!desc->name) return AVERROR(EINVAL); - if (desc->flags & ~(PIX_FMT_PLANAR | PIX_FMT_RGB)) + if (desc->flags & ~(PIX_FMT_PLANAR | PIX_FMT_RGB | PIX_FMT_PSEUDOPAL)) return AVERROR(ENOSYS); for (i = 0; i < desc->nb_components; i++) { c = &desc->comp[i]; |