[FFmpeg-cvslog] avcodec/vvcdec: check_available, use && instead of &= for shortcut evaluation
Nuo Mi
git at videolan.org
Thu Aug 15 15:43:58 EEST 2024
ffmpeg | branch: master | Nuo Mi <nuomi2021 at gmail.com> | Sun Jul 28 11:18:03 2024 +0800| [3e497249ebd0634e6fe6b044896f883a608d51ec] | committer: Nuo Mi
avcodec/vvcdec: check_available, use && instead of &= for shortcut evaluation
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3e497249ebd0634e6fe6b044896f883a608d51ec
---
libavcodec/vvc/mvs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/vvc/mvs.c b/libavcodec/vvc/mvs.c
index fe047cfd5a..e3f18f1861 100644
--- a/libavcodec/vvc/mvs.c
+++ b/libavcodec/vvc/mvs.c
@@ -614,9 +614,9 @@ static int check_available(Neighbour *n, const VVCLocalContext *lc, const int ch
if (!n->checked) {
n->checked = 1;
n->available = !sps->r->sps_entropy_coding_sync_enabled_flag || ((n->x >> sps->ctb_log2_size_y) <= (cu->x0 >> sps->ctb_log2_size_y));
- n->available &= is_available(fc, n->x, n->y) && cu->pred_mode == pred_flag_to_mode(TAB_MVF(n->x, n->y).pred_flag);
+ n->available = n->available && is_available(fc, n->x, n->y) && cu->pred_mode == pred_flag_to_mode(TAB_MVF(n->x, n->y).pred_flag);
if (check_mer)
- n->available &= !is_same_mer(fc, n->x, n->y, cu->x0, cu->y0);
+ n->available = n->available && !is_same_mer(fc, n->x, n->y, cu->x0, cu->y0);
}
return n->available;
}
More information about the ffmpeg-cvslog
mailing list