Commit 3f621455 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_transpose: Fix regression with packed pixel formats

Regression since: c6939f65Found-by: 's avatarPaul B Mahol <onemda@gmail.com>
Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 932037c6
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment