Skip to content

Commit 360b86c

Browse files
ntocmassiot
authored andcommitted
upipe_sws: fix potentially uninitialized variable
1 parent 6ead22f commit 360b86c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/upipe-swscale/upipe_sws_thumbs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ static int upipe_sws_thumbs_amend_ubuf_mgr(struct upipe *upipe,
490490

491491
uint64_t align;
492492
if (!ubase_check(uref_pic_flow_get_align(flow_format, &align)) || !align)
493-
uref_pic_flow_set_align(flow_format, 16);
493+
uref_pic_flow_set_align(flow_format, align = 16);
494494

495495
if (align % 16) {
496496
align = align * 16 / ubase_gcd(align, 16);

0 commit comments

Comments
 (0)