Skip to content

Commit 2a850b9

Browse files
Dafna Hirschfeldmchehab
authored andcommitted
media: vicodec: bugfix - replace '=' with '|='
In the fwht_encode_frame, 'encoding = encode_plane' should be replaced with 'encoding |= encode_plane' so existing flags won't be overwrriten. Signed-off-by: Dafna Hirschfeld <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 886ba97 commit 2a850b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/media/platform/vicodec/codec-fwht.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -787,10 +787,10 @@ u32 fwht_encode_frame(struct fwht_raw_frame *frm,
787787

788788
if (frm->components_num == 4) {
789789
rlco_max = rlco + size / 2 - 256;
790-
encoding = encode_plane(frm->alpha, ref_frm->alpha, &rlco,
791-
rlco_max, cf, frm->height, frm->width,
792-
frm->luma_alpha_step,
793-
is_intra, next_is_intra);
790+
encoding |= encode_plane(frm->alpha, ref_frm->alpha, &rlco,
791+
rlco_max, cf, frm->height, frm->width,
792+
frm->luma_alpha_step,
793+
is_intra, next_is_intra);
794794
if (encoding & FWHT_FRAME_UNENCODED)
795795
encoding |= FWHT_ALPHA_UNENCODED;
796796
encoding &= ~FWHT_FRAME_UNENCODED;

0 commit comments

Comments
 (0)