History

lavfi/vf_zscale: fix call to av_pix_fmt_count_planes

realign_frame called av_pix_fmt_count_planes with incorrect parameter.

Pavel Koshevoy committed 2 years ago

Commit 00cf3df1 parent 7b302f41 file · +1 −1Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_zscale.c+1−1
@@ -666,7 +666,7 @@ static int realign_frame(const AVPixFmtDescriptor *desc, AVFrame **frame, int ne · 665 unmodified lines
666666 int ret = 0, plane, planes;
667667
668668 /* Realign any unaligned input frame. */
669− planes = av_pix_fmt_count_planes(desc->nb_components);
669+ planes = av_pix_fmt_count_planes((*frame)->format);
670670 for (plane = 0; plane < planes; plane++) {
671671 int p = desc->comp[plane].plane;
672672 if ((uintptr_t)(*frame)->data[p] % ZIMG_ALIGNMENT || (*frame)->linesize[p] % ZIMG_ALIGNMENT) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t