diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-02-01 18:32:21 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-02-09 00:01:31 +0400 |
commit | 38d553322891c8e47182f05199d19888422167dc (patch) | |
tree | c65ae36daf4d68dfdbea62accc7f33630cc338f5 /libavfilter/vf_scale.c | |
parent | 8e37038a3458e6b55c9ebc28f077e2119a41b59e (diff) |
pixdesc: mark pseudopaletted formats with a special flag.
This makes it possible to dintinguish them from PAL8.
Fixes an invalid write in avpicture_layout().
Diffstat (limited to 'libavfilter/vf_scale.c')
-rw-r--r-- | libavfilter/vf_scale.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c index dd2f7e18a5..37a6f8e386 100644 --- a/libavfilter/vf_scale.c +++ b/libavfilter/vf_scale.c @@ -208,7 +208,8 @@ static int config_props(AVFilterLink *outlink) outlink->w, outlink->h, av_pix_fmt_descriptors[outlink->format].name, scale->flags); - scale->input_is_pal = av_pix_fmt_descriptors[inlink->format].flags & PIX_FMT_PAL; + scale->input_is_pal = av_pix_fmt_descriptors[inlink->format].flags & PIX_FMT_PAL || + av_pix_fmt_descriptors[inlink->format].flags & PIX_FMT_PSEUDOPAL; if (scale->sws) sws_freeContext(scale->sws); |