[FFmpeg-cvslog] lavfi/vf_zscale: fix call to av_pix_fmt_count_planes
Pavel Koshevoy
git at videolan.org
Sun Nov 17 17:37:42 EET 2024
ffmpeg | branch: release/7.1 | Pavel Koshevoy <pkoshevoy at gmail.com> | Sat Nov 9 09:08:26 2024 -0700| [5b461ffb041e0e24fdf14e36dfc857ae44bed249] | committer: James Almer
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 at gmail.com>
(cherry picked from commit 00cf3df03f66dca44568b5b5d3e9da35d3597470)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5b461ffb041e0e24fdf14e36dfc857ae44bed249
---
libavfilter/vf_zscale.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/vf_zscale.c b/libavfilter/vf_zscale.c
index d561466c56..a35cd1cdf7 100644
--- a/libavfilter/vf_zscale.c
+++ b/libavfilter/vf_zscale.c
@@ -664,7 +664,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) {
More information about the ffmpeg-cvslog
mailing list