combine the same branch in encode_b
combine the same branch with different checking style(dry_run==0 and !dry_run).
Change-Id: I688913506e024ba3831697baf071a49b5094af37
diff --git a/av1/encoder/encodeframe.c b/av1/encoder/encodeframe.c
index b18d276..8f91d7b 100644
--- a/av1/encoder/encodeframe.c
+++ b/av1/encoder/encodeframe.c
@@ -1484,10 +1484,8 @@
encode_superblock(cpi, tile_data, td, tp, dry_run, mi_row, mi_col, bsize,
rate);
- if (dry_run == 0)
- x->cb_offset += block_size_wide[bsize] * block_size_high[bsize];
-
if (!dry_run) {
+ x->cb_offset += block_size_wide[bsize] * block_size_high[bsize];
if (bsize == cpi->common.seq_params.sb_size && mbmi->skip == 1 &&
cpi->common.delta_q_info.delta_lf_present_flag) {
const int frame_lf_count = av1_num_planes(&cpi->common) > 1