Unified · Split
| @@ -504,7 +504,11 @@ static void read_inter_block_mode_info(VP9D_COMP *pbi, MODE_INFO *mi, · 503 unmodified lines | |||
| 504 | 504 | ||
| 505 | if (vp9_segfeature_active(&cm->seg, mbmi->segment_id, SEG_LVL_SKIP)) { | 505 | if (vp9_segfeature_active(&cm->seg, mbmi->segment_id, SEG_LVL_SKIP)) { |
| 506 | mbmi->mode = ZEROMV; | 506 | mbmi->mode = ZEROMV; |
| 507 | assert(bsize >= BLOCK_8X8); | 507 | if (bsize < BLOCK_8X8) { |
| 508 | vpx_internal_error(&cm->error, VPX_CODEC_UNSUP_BITSTREAM, | ||
| 509 | "Invalid usage of segement feature on small blocks"); | ||
| 510 | return; | ||
| 511 | } | ||
| 508 | } else { | 512 | } else { |
| 509 | if (bsize >= BLOCK_8X8) | 513 | if (bsize >= BLOCK_8X8) |
| 510 | mbmi->mode = read_inter_mode(cm, r, inter_mode_ctx); | 514 | mbmi->mode = read_inter_mode(cm, r, inter_mode_ctx); |