diff options
author | James Almer <jamrial@gmail.com> | 2015-04-21 22:28:21 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2015-04-21 22:41:20 -0300 |
commit | ba625dd8a12b8f440af7f50c833e5c1005d67c85 (patch) | |
tree | 866b471ad22b28d6b5e74e94e9c8f78fb8b1d040 /libavcodec/hevcpred_template.c | |
parent | 4f287a3c5007db853e4f1098ab194f9337e2f7da (diff) | |
download | ffmpeg-ba625dd8a12b8f440af7f50c833e5c1005d67c85.tar.gz |
avcodec: use av_mod_uintp2() where useful
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/hevcpred_template.c')
-rw-r--r-- | libavcodec/hevcpred_template.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/hevcpred_template.c b/libavcodec/hevcpred_template.c index 81242304dd..6b763b3a73 100644 --- a/libavcodec/hevcpred_template.c +++ b/libavcodec/hevcpred_template.c @@ -117,8 +117,8 @@ do { \ if (s->pps->constrained_intra_pred_flag == 1) { int size_in_luma_pu_v = PU(size_in_luma_v); int size_in_luma_pu_h = PU(size_in_luma_h); - int on_pu_edge_x = !(x0 & ((1 << s->sps->log2_min_pu_size) - 1)); - int on_pu_edge_y = !(y0 & ((1 << s->sps->log2_min_pu_size) - 1)); + int on_pu_edge_x = !av_mod_uintp2(x0, s->sps->log2_min_pu_size); + int on_pu_edge_y = !av_mod_uintp2(y0, s->sps->log2_min_pu_size); if (!size_in_luma_pu_h) size_in_luma_pu_h++; if (cand_bottom_left == 1 && on_pu_edge_x) { |