]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/vf_transpose: Fix regression with packed pixel formats
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 28 Jan 2018 01:46:56 +0000 (02:46 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 28 Jan 2018 14:10:52 +0000 (15:10 +0100)
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>
libavfilter/vf_transpose.c

index 1e1a5c4b893d563600efae84bc79268d8719b0ce..3ff4cb424961bb3923767f9cce5c4c884e4ffb74 100644 (file)
@@ -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);