aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Koshevoy <pkoshevoy@gmail.com>2024-11-09 09:08:26 -0700
committerJames Almer <jamrial@gmail.com>2024-11-09 19:33:56 -0300
commit00cf3df03f66dca44568b5b5d3e9da35d3597470 (patch)
treea6de76d6066b906ace167877863bfaa5b58deabc
parent7b302f4db7d335f4dd42cffb461b2b0db6c00749 (diff)
downloadffmpeg-00cf3df03f66dca44568b5b5d3e9da35d3597470.tar.gz
lavfi/vf_zscale: fix call to av_pix_fmt_count_planes
realign_frame called av_pix_fmt_count_planes with incorrect parameter. Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavfilter/vf_zscale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_zscale.c b/libavfilter/vf_zscale.c
index 219d178b16..65e685960d 100644
--- a/libavfilter/vf_zscale.c
+++ b/libavfilter/vf_zscale.c
@@ -666,7 +666,7 @@ static int realign_frame(const AVPixFmtDescriptor *desc, AVFrame **frame, int ne
int ret = 0, plane, planes;
/* Realign any unaligned input frame. */
- planes = av_pix_fmt_count_planes(desc->nb_components);
+ planes = av_pix_fmt_count_planes((*frame)->format);
for (plane = 0; plane < planes; plane++) {
int p = desc->comp[plane].plane;
if ((uintptr_t)(*frame)->data[p] % ZIMG_ALIGNMENT || (*frame)->linesize[p] % ZIMG_ALIGNMENT) {