Unified · Split
| @@ -3191,7 +3191,9 @@ static int read_next_block_into_queue(demuxer_t *demuxer) · 3190 unmodified lines | ||
| 3191 | 3191 | } |
| 3192 | 3192 | |
| 3193 | 3193 | case MATROSKA_ID_BLOCKGROUP: { |
| 3194 | − int64_t end = ebml_read_length(s); | |
| 3194 | + uint64_t end = ebml_read_length(s); | |
| 3195 | + if (end == EBML_UINT_INVALID) | |
| 3196 | + goto find_next_cluster; | |
| 3195 | 3197 | end += stream_tell(s); |
| 3196 | 3198 | if (end > mkv_d->cluster_end) |
| 3197 | 3199 | goto find_next_cluster; |