Commit 7f63dabf authored by Jim Bankoski's avatar Jim Bankoski

break at the end of clauses with assert(0) to avoid gcc warning

Change-Id: I1b3c5337f018dde27dc819ab18bd081d169a91e8
parent c3591463
......@@ -183,6 +183,7 @@ static INLINE int get_entropy_context(TX_SIZE tx_size, const ENTROPY_CONTEXT *a,
break;
default:
assert(0 && "Invalid transform size.");
break;
}
return combine_entropy_contexts(above_ec, left_ec);
......
......@@ -293,6 +293,7 @@ static void tree_to_node(void *data, BLOCK_SIZE bsize, variance_node *node) {
}
default: {
assert(0);
break;
}
}
}
......@@ -985,6 +986,7 @@ static void encode_sb(VP9_COMP *cpi, const TileInfo *const tile,
break;
default:
assert("Invalid partition type.");
break;
}
if (partition != PARTITION_SPLIT || bsize == BLOCK_8X8)
......@@ -1412,6 +1414,7 @@ static void encode_sb_rt(VP9_COMP *cpi, const TileInfo *const tile,
break;
default:
assert("Invalid partition type.");
break;
}
if (partition != PARTITION_SPLIT || bsize == BLOCK_8X8)
......@@ -1590,6 +1593,7 @@ static void rd_use_partition(VP9_COMP *cpi,
break;
default:
assert(0);
break;
}
pl = partition_plane_context(xd, mi_row, mi_col, bsize);
......@@ -2952,6 +2956,7 @@ static void nonrd_use_partition(VP9_COMP *cpi,
break;
default:
assert("Invalid partition type.");
break;
}
if (bsize == BLOCK_64X64 && output_enabled) {
......@@ -3028,6 +3033,7 @@ static void encode_nonrd_sb_row(VP9_COMP *cpi, const TileInfo *const tile,
break;
default:
assert(0);
break;
}
}
}
......
......@@ -348,6 +348,7 @@ void vp9_xform_quant_fp(MACROBLOCK *x, int plane, int block,
break;
default:
assert(0);
break;
}
}
......@@ -394,6 +395,7 @@ void vp9_xform_quant_dc(MACROBLOCK *x, int plane, int block,
break;
default:
assert(0);
break;
}
}
......@@ -444,6 +446,7 @@ void vp9_xform_quant(MACROBLOCK *x, int plane, int block,
break;
default:
assert(0);
break;
}
}
......@@ -521,6 +524,7 @@ static void encode_block(int plane, int block, BLOCK_SIZE plane_bsize,
break;
default:
assert(0 && "Invalid transform size");
break;
}
}
......@@ -692,6 +696,7 @@ static void encode_block_intra(int plane, int block, BLOCK_SIZE plane_bsize,
break;
default:
assert(0);
break;
}
if (*eob)
*(args->skip) = 0;
......
......@@ -2117,6 +2117,7 @@ void configure_buffer_updates(VP9_COMP *cpi) {
break;
default:
assert(0);
break;
}
if (cpi->use_svc && cpi->svc.number_temporal_layers == 1) {
cpi->refresh_golden_frame = 0;
......
......@@ -357,6 +357,7 @@ void vp9_get_entropy_contexts(BLOCK_SIZE bsize, TX_SIZE tx_size,
break;
default:
assert(0 && "Invalid transform size.");
break;
}
}
......
......@@ -2628,6 +2628,7 @@ int64_t vp9_rd_pick_inter_mode_sb(VP9_COMP *cpi, MACROBLOCK *x,
case NONE:
case MAX_REF_FRAMES:
assert(0 && "Invalid Reference frame");
break;
}
}
if (mode_skip_mask & (1 << mode_index))
......@@ -3225,6 +3226,7 @@ int64_t vp9_rd_pick_inter_mode_sub8x8(VP9_COMP *cpi, MACROBLOCK *x,
case NONE:
case MAX_REF_FRAMES:
assert(0 && "Invalid Reference frame");
break;
}
}
if (mode_skip_mask & (1 << ref_index))
......
......@@ -297,6 +297,7 @@ static vpx_codec_err_t validate_img(vpx_codec_alg_priv_t *ctx,
default:
ERROR("Invalid image format. Only YV12, I420, I422, I444 images are "
"supported.");
break;
}
if (img->d_w != ctx->cfg.g_w || img->d_h != ctx->cfg.g_h)
......@@ -311,7 +312,7 @@ static int get_image_bps(const vpx_image_t *img) {
case VPX_IMG_FMT_I420: return 12;
case VPX_IMG_FMT_I422: return 16;
case VPX_IMG_FMT_I444: return 24;
default: assert(0 && "Invalid image format");
default: assert(0 && "Invalid image format"); break;
}
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment