frame_provider: decoder: h264: Fix bitwise-instead-of-logical error
authorBruno Martins <bgcngm@gmail.com>
Fri, 20 Oct 2023 14:19:42 +0000 (15:19 +0100)
committerBruno Martins <bgcngm@gmail.com>
Fri, 20 Oct 2023 14:46:08 +0000 (15:46 +0100)
Change-Id: Ifd479eb8f12f40be5a6d64a25609129f68b0a4d3

drivers/frame_provider/decoder/h264/vh264.c

index 03a1dbabd0afe7b800137b5b86975da18157a8ae..0ab41203cb29a64259307ce3c409bcb5a923da51 100644 (file)
@@ -3145,8 +3145,8 @@ static void vh264_isr(void)
 
                                high_bandwidth |=
                                ((codec_mm_get_total_size() < 80 * SZ_1M)
-                               & ((READ_VREG(AV_SCRATCH_N) & 0xf) == 3)
-                               & ((frame_width * frame_height) >= 1920*1080));
+                               && ((READ_VREG(AV_SCRATCH_N) & 0xf) == 3)
+                               && ((frame_width * frame_height) >= 1920*1080));
                                if (high_bandwidth)
                                        vf->flag |= VFRAME_FLAG_HIGH_BANDWIDTH;