summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2018-01-28 02:46:56 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2018-01-28 15:10:52 +0100
commit3f621455d62e46745453568d915badd5b1e5bcd5 (patch)
treeb83c8e588d7610f37985e87ebe75a131bed0653b
parent932037c6bb6b41a24e75b031426844a2e6472a74 (diff)
downloadffmpeg-3f621455d62e46745453568d915badd5b1e5bcd5.tar.gz
avfilter/vf_transpose: Fix regression with packed pixel formats
Regression since: c6939f65a116b1ffed345d29d8621ee4ffb32235 Found-by: Paul B Mahol <onemda@gmail.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavfilter/vf_transpose.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_transpose.c b/libavfilter/vf_transpose.c
index 1e1a5c4b89..3ff4cb4249 100644
--- a/libavfilter/vf_transpose.c
+++ b/libavfilter/vf_transpose.c
@@ -217,7 +217,7 @@ static int config_props_output(AVFilterLink *outlink)
s->hsub = desc_in->log2_chroma_w;
s->vsub = desc_in->log2_chroma_h;
- s->planes = desc_in->nb_components;
+ s->planes = av_pix_fmt_count_planes(outlink->format);
av_assert0(desc_in->nb_components == desc_out->nb_components);