diff options
author | Paul B Mahol <onemda@gmail.com> | 2015-07-01 17:12:07 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2015-07-01 17:19:52 +0000 |
commit | 17e6d7b4008fa499892716cd095a364a42a3fba8 (patch) | |
tree | 59e6f57b69d33f743cb5037bf88fb93bb6d29fcc /libavfilter/vf_extractplanes.c | |
parent | fc40cdbf49047c6aadf2ff197ddab2ab7110e94c (diff) | |
download | ffmpeg-17e6d7b4008fa499892716cd095a364a42a3fba8.tar.gz |
avfilter/vf_extractplanes: use faster path for input formats with only one component
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/vf_extractplanes.c')
-rw-r--r-- | libavfilter/vf_extractplanes.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_extractplanes.c b/libavfilter/vf_extractplanes.c index 395a089b6f..1018e92f25 100644 --- a/libavfilter/vf_extractplanes.c +++ b/libavfilter/vf_extractplanes.c @@ -154,7 +154,8 @@ static int config_input(AVFilterLink *inlink) s->depth = (desc->comp[0].depth_minus1 + 1) >> 3; s->step = av_get_padded_bits_per_pixel(desc) >> 3; - s->is_packed = !(desc->flags & AV_PIX_FMT_FLAG_PLANAR); + s->is_packed = !(desc->flags & AV_PIX_FMT_FLAG_PLANAR) && + (desc->nb_components > 1); if (desc->flags & AV_PIX_FMT_FLAG_RGB) { ff_fill_rgba_map(rgba_map, inlink->format); for (i = 0; i < 4; i++) |