Unified · Split
| @@ -3115,7 +3115,7 @@ static int decode_nal_unit(HEVCContext *s, const H2645NAL *nal) · 3114 unmodified lines | ||
| 3115 | 3115 | ctb_addr_ts = hls_slice_data_wpp(s, nal); |
| 3116 | 3116 | else |
| 3117 | 3117 | ctb_addr_ts = hls_decode_entry(s, &gb); |
| 3118 | − if (ctb_addr_ts >= (s->ps.sps->ctb_width * s->ps.sps->ctb_height)) { | |
| 3118 | + if (ctb_addr_ts >= s->cur_frame->ctb_count) { | |
| 3119 | 3119 | ret = hevc_frame_end(s); |
| 3120 | 3120 | if (ret < 0) |
| 3121 | 3121 | goto fail; |